cs vim
May 25, 2021•147 words
cs vim
essentials (normal mode)
i insert here
a append here
A append at eol
. repeat last command
0 to beginning of line
$ to end of line
dd = delete line
dw = delete current word
d$ delete to end of line
d0 delete to begining of line
daw delete a word ;)
H = high of page
M = middle of page
L = bottom of page
G to bottom of file
gg to top of file
>G increase indentation until eof
ctrl-u scrolls up
ctrl-d scrolls down
w beginning of next word
b beginning of current word
e end of current word
u undo
/ search, with N and n
? reverse search, with n and N
.vimrc (for python)
set number
set cursorline
let python_highlight_all = 1
set nocompatible
syntax on
filetype plugin indent on