VIM
Vim is a keyboard-only text editor. Its used when making commit messages during git merges. To use Vim:
- Create a vim file
vim filename - Move around the file with the arrow keys or
h, j ,k, l - Switch between visual, insert, or normal mode with keys
v,i, andesc
Modes
vvisual mode read fileiinsert mode edit filexdelete charactersdddelete entire lineuundo
esccommand/normal mode - use file commands
Commands
:set numberadd numbers to vim ui:2navigates to line 2:!noderun with node:helpsee commands:qquit — changes haven\’t been made:q!quit and discard changes:wsave changes:wqwrite the changes (save) and quit