gzy's blog
:set compatible?:scriptnames> vimtutor> vim --clean -c 'e $VIMRUNTIME/tutor/tutor' -c 'w! TUTORCOPY' -c 'q'
> vim --clean TUTORCOPY
// The --clean argument makes sure Vim is started with nice defaults.
:set showmode k
h l
j
CTRL-O jump to older position
:help CTRL-A:help cpo-<letter>
:help i_CTRL-H:help i_CTRL-W:help i_CTRL-X:help i_<Up>:help v_o:help c_%
:help -t:help 'number':help :s:help E37:help >contCTRL-G show where you are.:set ruler/ru enable ruler.:set ignorecase ignoring case*# searching for a ward in the text/\<the\> searching for whole words.:set hlsearch highlighting matches.:set incsearch display the match for the string while you are still typing it.:jumps gives a list of positions you jumped to.
:marks get a list of marks.m{mark} place a mark.'{mark} jump to mark.d4w delete four words.c4w just like “d” operator, except it leaves you in Insert mode.SHORTCUTS
xdl delete character under the cursor.Xdh delete character left of the cursor.Dd$ delete to end of the line.Cc$ change to end of the line.scl change one character.Scc change a whole line.. It repeats the last change.vV selecting lines.CTRL-V selecting blocks.o only takes you to one of the other corners.O move to the other corner in the same line."*y copy to the clipboard."*p put text from the clipboard.daw delete a word.:edit $MYVIMRC:version mentions the name of the “user vimrc file” Vim looks for.set backspace=indent,eol,startset showcmdset wilemenufiletype plugin indent on:map <F5> i{<Esc>ea}<Esc>packadd! matchit:help matchit:options:set iskeyword&:set ignorecase:set nowrap:set list:hide edit foo.txt:previous:next:args where am i
:set autowrite automatic writing:args five.c six.c seven.h editing another list of files