+clipboard
to support system clipboard (Useless if you're on a server)+mouse
to support mouse (including scrolling)Check out compiling vim from source to install the latest version.
形容词+名词
形容词:
名词:can be extended by plugin
NOTE: rule 3 applies to operators
rule 4. if x is normal function, xx is super function
operators require a range, it could be either:
those operators don't need range:
By using dw
, we take d
as verb and w
as noun, making a meaningful sentense: "delete a word".
:[%|$start,$end]s/tosearch/toreplace[/g]
%
to search crossing the whole file.
means current line+3
means to the next 3 lines/
is not the only separator. you could use anything you want (typically #
)g
to replace globally (without %
it means global crossing the line)" add the following paragraph to Vim_utils
" Return to last edit position when opening files (You want this!)
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
" Remember info about open buffer on close
set viminfo^=%