Wednesday, August 1, 2007

Some Useful VIM Commands

- Go to current directory:

:cd %:p:h

- Covert DOS line feeds to Unix line feeds, or vice versa:

:set fileformat=unix
:w

or

:set fileformat=dos
:w

No comments: