Vim/Text Mode
Jump to navigation
Jump to search
Vim is a text editor used by people who are afraid of mice. It is operated entirely through a keyboard.
Motions
Motions are how you move around.
List of motions
wmove cursor upamove cursor leftsmove cursor southdmove cursor downeput a cursor at every letter of the word or selectionbmove back one characterjjump to the next word0does nothing^move to start of paragraph$move to the most computationally expensive character in the line. changes depending on your terminal fontiselect insideoselect outsidefselect firstslselect lasts
Commands
Commands do things.
List of commands
ienter insert modeAenter ansert mode (used to delete characters instead of adding themventer vim mode (used for selection)Venter Vim mode (used for advanced selection)rcreates a new cursor which can be moved around. pressing enter returns control to all cursors.ccopy selectionppaste selectiongdoes what ever you want it to do at a given momentFa for loop—followed by a hex number,<Esc>(to delimit the number and the command), and a command or motion to do that command or motion the specified number of timesgqask vim a question. if you already know the answer, it does nothing (must be a genuine question),pauses vim for a moment;pauses vim for longer.exits vimhhide search highlighting
Commands available in insert mode
<CapsLock>stop insert mode
Commands available in ansert mode
Characters can be deleted in ansert mode by typing the character you want to delete. If it does not match the character under your cursor, it does nothing.
CTRL-Ddeletes a characterCTRL-Xkills a character (sent to~/.vim/cemetery)CTRL-SHIFT-Ddelete selection