vim in vscode

tags: vim tool editor

noraml

功能
h
j
k
l
f1啟用/停用vim
escto normal mode
alt fto normal mode
ito insert mode (insert)
ato insert mode (append )
oadd one line to top and insert mode
Oadd one line to below and insert mode
:to command mode
wnext word start
eend of word
blast word of start
/searth word
nmove to next that searthed
ppast on below
Ppast on top
uundo
ctrl rredo
$移動到這一列的最後面字元處
%移動到這一列的最前面字元處
c重複刪除 例如向下刪除 10 列,[ 10 cj ]
vselect
Vline select
ctrl vblock select
shift vline select
ggstart of file
shift gend of file
number shift gnumber line of file
ctrl w hjklmove window focus
ctrl w HJKLmove window position
cgnrepalce word you search first use “n.” to redo on next word
m a-zmake book mark
’ a-zgo to book mark
viw + ( or [ or {select inner word
vaw + ( or [ or {select outer word

command mode

功能
:numbergo to line number
:Sexbrowse the file system
:e .browse the file system
:e filepathopen file
:spopen window horizon
:svopen window horizon
:vspopen window vertial
:vsopen window vertial
:!termail_commandrun termail_command on termal