Tuesday, November 3, 2009

a.vim : Alternate Files quickly

There is a very cool vim script a.vim:

http://vim.sourceforge.net/scripts/script.php?script_id=31

However this script is really poorly documented, so I spend half an hour just to figure out how to add a special extension.

Easy:

let g:alternateExtensions_txx = "hxx,h,hh"


Well now how about t++ -> h++ ? Look easy, try it yourself !

Answer:

:so $HOME/.vim/plugin/a.vim
let g:alternateExtensionsDict['t++'] = "h++"

No comments: