Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Thursday, February 17, 2011

vim spell check of XML files

This is something I always forget:

:setlocal spell spelllang=fr

to install french spell, and then to use:

:syn spell toplevel

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++"