December 3, 2008

bindkey -v ?

Published by Patrick

1 comment

Assuming you use zsh, do you use vi or emacs keybindings? I've always used emacs but just tried bindkey -v for the first time…I think that might be a harder switch than changing editors.

November 25, 2008

Google search with vi keyboard shortcuts

Published by Patrick

6 comments

Edit /Applications/Firefox.app/Contents/MacOS/searchplugins/google.xml and add

<Param name="esrch" value="BetaShortcuts"/>

in the Url block…then when you use the firefox search bar, you can use J/K to navigate the search results, O or Enter to open a result (wish there was a key to open it in a new tab), / to return to the search box, Esc to leave the search box.

November 5, 2008

vim tab completion

Published by Patrick

20 comments

How can I get vim tab completion to stop at the longest match instead of cycling through full matches?

If that didn’t make any sense: if I have files CommentViewController.[hm], CommentMenuViewController.[hm], CommentSource.[hm], CommentSourcePerson.[hm], etc., right now if I do

:find Com(TAB) it will display :find CommentSource.m. Pressing tab again cycles through all of these.

I want it to display :find Comment and then I can add more characters and press tab again.

Answer:

set wildmode=longest,list

For more information, :help wildmode.

Looking for something older? Visit the archives.
Returning user? Login