Daqing Chu At WordPress

February 13, 2009

Vimperator Tip of the Day: xall

Filed under: Programming Notes — David Chu @ 3:51 am

Tip of the DayIn my Firefox Preference, I have set up my tab settings to save all the tab as a session when it is closed and reopen the session when it starts…

Read full blog ยป


February 1, 2009

Vimperator Tip of the Day: Show Sidebar Widnows

Filed under: Programming Notes — David Chu @ 11:09 pm

Tip of the DayIf you have not set your wildeoptions to auto in your .vimperatorrc(for Mac) or _vimperatorrc(Windows), you may type the command to enable command auto-completion. See my blog on Vimperator Settings for more information. This is a very handy option:

:set wildoptions=auto

OK, let look the tip of the day. I use bookmarks a lot and it is very handy to have it displayed as sidebar window. To open it, you can type the command:

:sidebar Bookmarks

while you type a command, you will see a list options available to choose. You can either continue to type or to press Tab key to make a selection (note: the new version of Vimperator’s command is changed to sidebar…):

View of sbar command

You may see other sidebar windows available from the list. By the way, I like auto-completion mode very much. In Vimperator, you can type a word as a filter to narrow down the list such as m for bookmark.

This command is added to my table of My Favorite Vimperator Keys. Enjoy using Vimperator!

January 25, 2009

Vimperator Tip of the Day: Keys for Tabs

Filed under: Programming Notes — David Chu @ 8:25 pm

Tabs are mostly used in Firefox. Vimperator provides many convenient keys for tabs. In Vimperator’s term, buffer is used for tabs, ie, tabs are actually used as buffers to hold web pages. Here are some keys you can use for tabs or buffers:

Listing all tabs. :buffers, b or B. The difference between b and B is that B(:buffers) lists more defail information about buffers. % is used to indicate current buffer, and # for previous visited buffer. In case there are too many tabs opened, it is convenient to use these keys to find out buffer numbers.

Changing tabs. I use gt or gT most to change tabs. You can type buffer number before gt to jump directly to a tab.

If you have to switch between two tabs such as one for the current blog editting and another for blog preview, you may find out gb or gB very easy to jump between tabs. gb or gB is used to switch to previous :buffer commands.

Closing tabs. Use d to delete the current buffer or close the current tab. Use number before it to close count of tabs, including the current tab, to the right and the next right tab is selected. Use u to undo closed tabs.

By the way, Vimperator displays the current buffer or tab in the status bar like [num/tabs], where num is the tab number and tabs for total tabs:

Tab number on status bar

January 24, 2009

My Favorite Vimperator Keys

Filed under: Programming Notes — David Chu @ 11:18 pm

I have posted a blog on this issue at my Blogger: VIM + FIREFOX = VIMERATOR. The following is the re-posting this with a table layout:

Esc key: escape from any mode. If you find out keys not working, you may in some mode such as search, Insert or other modes; Press Esc to escape;
[num]gt or C-n: go to next or nth (if num is provided) tab;
gT or C-p: go to the previous tab;
g0 or g^: go to the first tab;
g$: go to the last tab;
gf or :view view the source in the current tab;
gh or gH: go to home page or new tab with home page;
gu or gU: go up parent link or root;
gi: focus the last used input field;
gb or gB Repeat last :buffer! command or reversely. Convenient to switch back to previous visited tab.
:buffers or b or B Show a list of current buffers(tabs). B lists more detailed information such as % for current tab # for previous tab.
S-h or C-o: go to the previous history link;
S-l or C-i: go to the next history link;
f or F: hint mode to display links by number. F for open link in a new tab;
;{keys}: hint mode by command keys:
a or s: save a link (prompt dialog or no dialog);
o or t: open a link in current tab or new tab;
O or T: open a link in current tab or new tab with its command in the command area(bottom);
v: view source code in the current tab;
y: yank the link;
Y: yank the link’s text;
o or t: open a link in the current or new tab. You can type in a link in the command area then press enter key;
O or T: similar as above with the current link displayed;
y: yank the current link;
a or A: add or added the current link to bookmark;
[num]h,j,k, or l: move left, down, up or right by number if num is provided or by one as default;
gg: move to top;
G: move to button;
C-d, C-u, C-b or C-f: scroll down or up with half or full page;
z{keys}: zooming
i: zoom in;
o: zoom out;
z: back to 100%;
:sav[eas]>: save the current link to disk;
/: start search in Vimperator command area;
n or N: search forward or backward;
:st[op] or C-c: stop current loading;
r or R: fore to reload the current page(R for skipping the cache);
d or :quita[ll]: close the current tab or all tabs;
u or :undoa[ll]: undo closing one or all tabs;
:restart: restart Firefox;
:ZQ: quit and don’t save current session;
:ZZ: quit and save the current session;
:ver: displaying versions of Vimperator and Fixfox;
:addon displaying firefox’s addon;
:sbar open sidebar window with optional selection: Bookmarks, History, Add-ons, Downloads, Preferences…
:sbclose close sidebar window
:saveas save current document to disk with prompt where to save.
:addons open all the add-ons and themes in the current tab.
: xall Save the session and quit

Blog at WordPress.com.