尤其是在使用筆記本鍵盤的情況下,號稱“讓你的雙手不離開打字區”,這真是個偉大的設計思路。
先上一張我的gVim截圖:

怎么樣,還行吧,自我感覺挺酷的:-)
下面是我的gVim配置,都寫了注釋的:
"gVim啟動窗口位置 大小
winpos 173 162
set lines=25 columns=108
"設定文件編碼
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
syntax on
"配色風格
colorscheme desert
"文本縮進設置
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s
set nu
"如果沒有下面這段就拷貝進來吧 雖然不知道干什么的
if &term=="xterm"
set t_Co=8
set t_Sb=^[[4%dm
set t_Sf=^[[3%dm
endif
"設定折疊方式
"set foldmethod=indent
"以下字符將被視為單詞的一部分 (ASCII):
"set iskeyword+=33-47,58-64,91-96,123-128
"打開文件自動跳轉到上次編輯的行
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
"Get out of VI's compatible mode..
set nocompatible
"Sets how many lines of history VIM har to remember
set history=400
"文件在外部被修改則自動保存
set autoread
" vim用戶界面
"Turn on WiLd menu
set wildmenu
"Always show current position
set ruler
"The commandbar is 2 high
set cmdheight=2
"Show line number 顯示行號
set nu
"Set backspace
set backspace=eol,start,indent
"Bbackspace and cursor keys wrap to
set whichwrap+=<,>,h,l
"show matching bracets
set showmatch
"How many tenths of a second to blink
set mat=2
filetype plugin on
"同樣適用于jQuery的js語法高亮
au BufRead,BufNewFile *.js set syntax=jquery
map :NERDTreeToggle
nmap :TlistToggle
let Tlist_Use_Right_Window=1
set tags=tags;/
"對NERD_commenter的設置
let NERDShutUp=1
"支持單行和多行的選擇,//格式
map ,c
" phpDocumentor for VIM
inoremap :call PhpDocSingle()
nnoremap :call PhpDocSingle()
vnoremap :call PhpDocRange()
"對.vimrc配置文件的修改立即生效
autocmd! bufwritepost _vimrc source %
然后是我使用的插件:
NERDTreeToggle :用于導航和打開文件,在上面截圖的左邊區域
TlistToggle :用于導航代碼中的類、變量以及函數(方法)
OmniComplete :代碼的自動補全,快捷鍵是Ctrl+x Ctrl+o,支持很多種語言
NERDCommenter :用于給代碼加注釋
phpDocumentor :用于給php類和函數加文檔 按下alt+/時
posted on 2012-01-19 11:15
MEYE 閱讀(1552)
評論(1) 編輯 收藏