head.daveops.net

Snippets for yer computer needs

vim

http://www.vimninjas.com/

profile Vim startup time

vim 7.2.269+

vim --startuptime start.log

Sort on a virtual column

:sort /.*\%10v/

Get filetype

:set filetype?

Delete all lines containing a pattern

:g/profile/d
:g/^\s*$/d

Show line numbers

:set number

Omnicompletion