Vim Notes & Tricks

My Vim Plugins

Basic Editting Stuff

Some Notes

Substitution

<nowiki>:s/\(\w\+\)/\1 # /</nowiki> Change <nowiki>A B</nowiki> to <nowiki>A # B</nowiki>.

Commands

Datestamp

Add

nnoremap <F5> 3wv$"=strftime("%c")<CR>P

to your VIMRC. Place cursor on the head of "Last Modified" line and <F5>. See also.

Linux-related

Use vim-gtk or vim-gnome under linux (for instance, under vim-basic "+y, or the system clipboard, will not work).


Useful Links & Resouces

  1. Some tutorial videos here (http://ontwik.com/tools/vim-from-novice-to-professional-by-derek-wyatt-p1/).
  2. http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-novice-tutorial-videos/
  3. http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-intermediate-tutorial-videos/
  4. http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-advanced-tutorial-videos/
  5. http://www.derekwyatt.org/vim/vim-tutorial-videos/vim-plugin-showcase/
  6. http://www.linuxconfig.org/Vim_Tutorial

Last Modified: February 06, 2012 18:54:24