Sometimes you have to get yourself to use VIM. It is a good tool, but when you are starting out, it can be frustrating. Come here for some links to resources and useful snippets; it’s cheaper than a therapist. I need these for myself also.
Clear Last Search Pattern
Repeat Character N Times
Sometimes I don’t know how I got here but I gotta get out!!!
Open File Under Cursor
I found out about this at http://vim.wikia.com/wiki/Open_file_under_cursor
Export File To Syntax Highlighted HTML
Reformat XML File
I got this from:
I just put this here to make it easy to get do. First and foremost:
If you have a 1-line file:
gg=G does the magic.
Nice and clean, not a lot of cryptic graphics: tnerual.eriogerg.free.fr/vimqrc.html
Some good notes: http://www.brezeale.com/technical_notes/vim_notes.shtml
vim and Tabs
Useful .vimrc settings
set backupdir = ~/tmp # annoying ~ files in ~/tmp
set noswapfile #no swap files
#set nobackup #uncomment out for no backups, period
#set nowritebackup #no backup files while editing