Comment on page
Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient. It is included as "vi" with most UNIX systems and with Apple OS X. Vim is often called a "programmer's editor," and so useful for programming that many consider it an entire IDE. It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing an email to editing configuration files.
Generally speaking, there are three basic modes in Vim:
- Command mode - allows you to run commands (Default).
- Insert mode - allows you to insert/write text.
- Visual mode - visual text selector.
- h - move the cursor left
- j - cursor down
- k - cursor up
- l - move the cursor right
- i - enter the insert mode
- esc - enter the command mode
- $ - move to the end of the line
- yy - copy a line
- p - paste
- d - delete a line
- x - cut a character
- :q - quit
- :wq - write & quit
- :q! - quit without saving
- /word - search for 'word' in the document
- :vimgrep - grep integration in Vim (allows to search in multiple files)