Vim 要產生預設的 vimrc, 然後再來做修改, 只要於 Vim 裡面輸入下述即可:
- :mkvimrc
就會產生 ~/.vimrc, 由這邊可以看出系統 Vim 的預設參數值如何~
$ cat .vimrc # 會如下述 (下述是於 MacOSX Vim 產生)
version 6.0
if &cp | set nocp | endif
let s:cpo_save=&cpo
set cpo&vim
imap <S-Tab> ^V^P
inoremap <C-Tab> ^V-
nnoremap <silent> \ff :call g:Jsbeautify()
map <silent> \bv :VSBufExplorer
map <silent> \bs :SBufExplorer
map <silent> \be :BufExplorer
nmap gx <Plug>NetrwBrowseX
nnoremap <silent> <Plug>NetrwBrowseX :call netrw#NetrwBrowseX(expand("^V <cWORD>"),0) ^V
imap ^V- ^V^N
imap ^V^X ^V^R=CtrlXPP() ^V
let &cpo=s:cpo_save
unlet s:cpo_save
set background=dark
set backspace=2
set fileencodings=ucs-bom,utf-8,default,latin1
set helplang=tw
set modelines=0
set window=0
" vim: set ft=vim :