http://www.g0574.com/viewthread.php?tid=1142
http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx
Ruby 1.9
VIM 7.1.138
Exuberant Ctags 5.7, Copyright (C) 1996-2007 Darren Hiebert
Compiled: Nov 14 2008, 14:57:42
Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
Optional compiled features: +wildcards, +regex?
?
下面是我的配置文件:
"========================================================
" Set vim colorscheme
colorscheme desert
"========================================================
"========================================================
" syntax highlight
syntax enable
syntax on
"========================================================
"========================================================
" Add the WinManagerWindow
" =======================================================
let g:winManagerWindowLayout='FileExplorer|TagList'
nmap wm :WMToggle<cr>
"========================================================
" Add the tagList
"========================================================
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
"========================================================
" SuperTab Retain Completion
" =======================================================
let g:SuperTabRetaincompletionType=2
"========================================================
" Set the nocompatible for the vim not vi
" =======================================================
set nocompatible
set nu
"========================================================
" Set the key map
" =======================================================
map <F4> :w <CR> :!ctags -R % <CR> :TlistUpdate <CR>
imap <F4> <Esc><F4>
imap <F5> <Esc><F5>
imap <F6> <Esc><F6>
inoremap <C-space> <Esc>
map <C-s> <Esc>:w<CR>a
imap <C-s> <Esc><C-s>
map <C-f> :%s/
imap <C-f> <Esc><C-f>
map <A-a> <Esc>ggVG
imap <A-a> <Esc><A-a>
map <C-c> "+y
imap <C-c> <Esc><C-c>
map <C-v> p
imap <C-v> <Esc><C-v>
"========================================================
" Set the local
" =======================================================
setlocal encoding=utf-8
setlocal expandtab
setlocal autowrite
setlocal tabstop=2 shiftwidth=2 softtabstop=2
setlocal autoindent
"========================================================
" Set the filetype
" =======================================================
filetype on
filetype indent on
filetype plugin on
"========================================================
" Set the auto complete opt
" =======================================================
set completeopt=longest,menu
"========================================================
" Set the vim for the dictionary and other basic setting
" =======================================================
"設(shè)置文件瀏覽器目錄為當(dāng)前目錄
set nocompatible
set autochdir
"設(shè)置編碼
set enc=utf-8
"設(shè)置文件編碼
set fenc=utf-8
"設(shè)置文件編碼檢測(cè)類(lèi)型及支持格式
set fencs=utf-8,gb18030,gbk,gb2312
?在配置了上述文件后,我又將附件中的各個(gè)vim的腳本文件放進(jìn)去了。
現(xiàn)在感覺(jué)還是蠻不錯(cuò)的,用這樣的編輯器進(jìn)行簡(jiǎn)單的語(yǔ)法學(xué)習(xí)和小規(guī)模的應(yīng)用開(kāi)發(fā)蠻合適的。
?
下面是使用的截圖:
?
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061
微信掃一掃加我為好友
QQ號(hào)聯(lián)系: 360901061
您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對(duì)您有幫助就好】元

