vim tips 3
2019-09-27 - psic4t
Even more of this.
- c-o which will take you out of insert, letting you do one normal command, and then put you right back into insert.
- alt-keystroke changes to normal mode and executes keystroke
- ZQ is equivalent to :wq!
- mark some text and press ~ to switch case
- ci" removes everything between " in line and changes to insert mode
- :digraphs prints a list of key combos for characters like ©
- c-a increments number under cursor, c-x decrements number under cursor
- c-d removes indentation level in insert mode and c-t adds indentation level in insert mode
- type (partial) word. type c-x c-p for word completion. use c-n or c-p to chose the right one