-
echomandechoe- print message and error message, later can use:messageto show all previous printed message. -
se[t] numberse[t] nonumberse[t] number!se[t] number?– check which option is on -
se[t] numberwidth=2(default is 4) -
map <c-d> ddp– this map ctrl-d toddand thenpmap _ ddkkp– this map _ to delete line and then go up 2 line and then pastenmap: (nnoremap) map in normal mode vmap: (vnoremap) in visual mode imap: (inoremap) map in insert mode: this could be use for intellij live template imap soul System.out.println(“”); imap
ddi : need to escape the insert mode then delete line VERY USEFUL: imap
viwU : convert a just finished type word to all upper case. nunmap U - unmap U in normal mode
use *noremap!!!!!
- repeat insertion:
- i - insert mode
Ctrl+oissue normal command without leaving insert mode- 80 - number of repetition
- i - insert
- type the charactors you want to repetition insert
Esc- leave the insert mode