Useful Vim Shortcuts
Some powerful VIM configuration projects on Github:
- spf13-vim
https://github.com/spf13/spf13-vim
- dot-vimrc
https://github.com/humiaozuzu/dot-vimrc
- vimrc
Shortcuts:
In normal mode: type » to indent the current line, or « to unindent.
In insert mode, Ctrl-T indents the current line, and Ctrl-D unindents.
For all commands, pressing . repeats the operation.
For example, typing 5».. shifts five lines to the right, and then repeats the operation twice so that the five lines are shifted three times.
Insert current file name: :r! echo %