Vim keys
2020-05-16 21:00
I decided to check on my knowledge on what each key does in Vim, to find gaps in my knowledge and see if efficiency and proficiency can be improved.
q, record macro, takes a register nameQ, enter command (Ex) modew, move forward to start of next wordW, same as w, but uses a different match for word boundarye, to end of wordE, same as e, but different boundaryr, replace current char, takes another letterR, replace with overwritet, not sure what it does by itself, usually as part of another command, to indicate until, like dtw, delete until the letter wT, no ideay, copy (or yank)Y, copy current line (to register ")u, undoU, no ideai, enter insert mode before cursorI, enter insert mode at the start of current lineo, start an empty new line after current cursor and enter insert modeO, start an empty new line before current cursor and enter insert modep, paste (from register ")P, paste before cursor[,not sure what it does by itself, usually with another key{,jump to previous paragraph (new line delimited)],not sure},jump to next paragraph (new line delimited)\,no idea|,no idea,a, enter insert mode after cursorA, enter insert mode at end of current lines, delete char at cursor and enter insert modeS, not sured, delete, takes a motionD, delete till end of linef, takes another letter, jump to next letter on current lineF, takes another letter, jump to previous letter on current lineg, does nothing by itself, takes a letter like g (start of document) or G, (end of document) and jumps there- with u, make lowercase
- with U, make uppercase
- with g, go to first line
G, go to end of documenth, move cursor leftH, no ideaj, move cursor downJ, join linek, move cursor upK, look up current word in man pagesl, move cursor rightL, no idea;,does nothing, mostly mapped to a leader:,enter command',takes a mark (usually letters, but there are special symbols), and jumps to it",no ideaz, takes another letter, usually have to do with foldingZ, no ideax, delete char under cursorX, not surec, takes a motion key, changes till motion, a combination ofdandiC, changes till end of linev, enter visual moveV, visually select current lineb, go back a wordB, not sure, probably back a word but with different word boundaryn, next match (after a search)N, previous match (after a search)m, takes a letter, bookmark current lineM, not sure,, not sure what it does by default, this is my localleader<, not sure what it does by itself, i use << for indent left., repeat last action>, not sure what it does by itself, i use >> for indent right/, search forward?, search backward1to 101, used as part of a command to specify repetition, liked3w, delete 3 words- `, not sure, something mark related
~, change case!, not sure@, takes a key, run macro#, search backward for word under cursor$, jump end of line%, jump to matching parens/brackets/brace^, jump to start of line&, not sure*, search forward for word under cursor(, not sure, probably like {), not sure, probably like }-, not sure_, not sure=, takes a motion, indents+, not sure
The next step is to figure out what those keys that I am unsure about actually do.