今天在看别人的 vimrc
分享一下看到的这个很酷的设定,怎么我以前都没想到过XD
" In normal mode, we use : much more often than ; so lets swap them.
" WARNING: this will cause any "ordinary" map command without the "nore"
prefix
" that uses ":" to fail. For instance, "map <f2> :w" would fail, since vim
will
" read ":w" as ";w" because of the below remappings. Use "noremap"s in such
" situations and you'll be fine.
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;