今天在看別人的 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 : ;