"====================================================================================== |
"====================================================================================== |
set guifont=Courier\ New\ 12 |
set guifontwide=STXihei:h14 |
| " set guifont=Bitstream\ Vera\ Sans\ Mono:h14 |
| " set termencoding=macroman |
| set backspace=indent,eol,start |
| set whichwrap=b,s,<,>,[,] |
| set backspace=indent,eol,start |
| set dictionary-=/opt/ local /share/vim/vim72/plugin/funclist.txt dictionary+=/opt/ local /share/vim/vim72/plugin/funclist.txt |
| set complete-=k complete+=k |
| function ! InsertTabWrapper() |
| if !col || getline( '.' )[col-1] !~ '\k' |
| </c-n></tab></code><code> |
| "Remap the tab key to select action with InsertTabWrapper |
| inoremap <tab> <c-r>=InsertTabWrapper()<cr> |
| </cr></c-r></tab></code><code> |
| map <f7> :NERDTreeToggle<cr> |
| "imap <f3> <esc>:NERDTreeToggle<cr> |
| </cr></esc></f3></cr></f7></code><code> |
| let macvim_skip_cmd_opt_movement = 1 |
| let macvim_hig_shift_movement = 1 |
| set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936 |
| set guifont=Monaco:h12:cANSI |
| set matchpairs=(:),{:},[:],<:> |
| "讓倒退,空格,上下箭頭遇到行首行尾時自動移到下一行(包括insert模式) |
| set whichwrap=b,s,<,>,[,] |
| let g:javascript_enable_domhtmlcss=1 |
| "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
| "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
| let g:bufExplorerSortBy= 'mru' |
| let g:bufExplorerSplitRight=0 |
| let g:bufExplorerSplitVertical=1 . |
| let g:bufExplorerSplitVertSize = 30 |
| let g:bufExplorerUseCurrentWindow=1 |
| autocmd BufWinEnter \[Buf\ List\] setl nonumber |
| "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
| "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
| let g:winManagerWindowLayout = "BufExplorer,FileExplorer|TagList" |
| let g:winManagerWidth = 30 |
| let g:defaultExplorer = 0 |
| nmap <silent> <leader>wm :WMToggle<cr> |
| </cr></leader></silent></code><code> |
| "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
| "" "" "" "" "" "" "" "" "" "" "" "" "" "" "" |
| nmap <silent> <leader>fe :Sexplore!<cr> |
| macm File.Paste key=<d- v > |
| macm File.Select\ All key=<d-a> |
</cr></cr></cr></cr></cr></cr></d-a></d-x> </d- v ></d-c></d-z></d-s></cr></leader> </silent></code> |
linux下,配置檔案放到home根部錄下,即:~/.vimrc檔案。