Tuesday, April 27, 2010

Command shortcuts in vim (vi)

I was tired of looking this up every time, so I add this line to my ~/.vimrc file:

:cnoreabbr html runtime! syntax/2html.vim

Now in VIM, I type “:html” to create a new .html file with syntax highlighting

No comments:

Post a Comment

Followers