VIM tips 4
2022-05-30 - psic4t
- C deletes until the end of the line and turns on insert mode
- D deletes until the end of the line
- rx replaces the char under the cursor with x
- CTRL+n autocompletes stuff from any buffer (navigate with CTRL+n/CRTL+p)
Some "g" commands
- g; jumps to your last change (even after reopening)
- ga over a letter shows its ASCII code
- gd jumps to the corresponding definition
- gM jumps to the middle of the line
- gm jumps to the middle of the screen line
- gv reselects the previous visual area