banner
橙汁

橙汁

Vim Tips and Tricks

Reference pdf

~/.vimrc

set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab

Execute command

:!command line

Open a shell and exit

:shell
exit

Open a horizontal window

Ctrl+w s

Open a vertical window

Ctrl+w v

Close window

Ctrl+w c/o single/all

Replace text

:1,10s/a/b/g
:%s/a/b/g

Print text

:1,10p

Open text

:edit filename

Keyboard movement

hjkl
left down up right
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.