Originally posted by piersk
Does anyone know of any good VIM tutorials? I found the ones that come with it are a bit confusing.
There's definitely a bit of a learning curve with vim.
Here's a vim cheatsheet:
http://www.fprintf.net/vimCheatSheet.html
basically you need to know vim is a dual moded editor, there's command mode, hit ESC at any time, and you're in command mode, and there's also edit mode, hitting i, a, o, etc in command mode gets you there. Other than that, it's just a bit of memorization and practice of the commands you find most useful.
i inserts, o inserts a newline, x deletes a character, dd deletes a whole line, d4d deletes 4 lines, u does an undo, ctrl-r does a redo, shift-ZZ saves and exits, :q! quits without saving. Those are the quickies that I use the most, there's other really tricky tips that makes vim really powerful here:
http://vim.sourceforge.net/tips/index.php
And and the #1 reason I use vim, it's available for windows and linux, so I can use the same editor no matter what OS I'm running at the moment.