UP | HOME

Vim commands

-----------------------------------------------------------------------------------------------
” could be in startup setting
:ab MAA multiAccountAlert # define a abbreviations
:map :w! # define a shortcut

-----------------------------------------------------------------------------------------------
” useful tips
then select “column(s)” with motion commands (win32 )

pull word under the cursor into a command line or search; i.e: -> / ->

then this command

pull WORD under the cursor into a command line or search

:n1,n2 d # delete content between line n1 and n2
:n1,n2 co n3 #copy content between line n1 and n2 under line n3
:n1,n2 move n3 # move content

-----------------------------------------------------------------------------------------------
recording macro in VIM