stands for visual vi-style editors are the most widely spread editors in the UNIX world. It is available on any UNIX system Wednesday, October 12, 2011
keys in each mode of operation When using vim editor, we have 4 keyboards at our disposal Vim modes: normal, visual, insert, ex (command prompt) Wednesday, October 12, 2011
delete D - delete until end of line dd - delete complete line x - delete a single character (del) X - delete a single character (backspace) Wednesday, October 12, 2011
move cursor to the next character o - move cursor to the next line I - move cursor to beginning of line A - move cursor to end of line Wednesday, October 12, 2011
save as :wq - save and exit :e - open a file for editing :r filename - read file and paste its content into current buffer :r !cmd - run unix command and paste its output into current buffer Wednesday, October 12, 2011
v - enter visual mode selecting characters V - enter visual mode selecting lines <C-v> - enter visual mode selecting blocks Wednesday, October 12, 2011
any action map binds a key in all modes imap binds a key in insert mode cmap binds a key in command line (ex) mode nmap binds a key in normal mode vmap binds a key in visual mode Wednesday, October 12, 2011