Barnoid’s Knowledge Base

Bits of Collected Wisdom

September 1st, 2008

VIM: Search for selection

After yanking a piece of text into the buffer, you can search for it by pressing <ctrl>-<r> ” (that is: control-r double quotes) in search mode (”/”).

September 1st, 2008

VIM <-> X11 middle-mouse copy/paste

That one is easy: just enable the “vim-with-x” USE flag and recompile vim:

# echo "app-editors/vim vim-with-x" >> /etc/portage/packages.use

# emerge -av vim

[ebuild   R   ] app-editors/vim-7.2  USE="acl gpm nls perl python vim-with-x -bash-completion -cscope -minimal -ruby -vim-pager”