編輯~/.vimrc,加入以下內容:
""" set file encoding set encoding=utf-8 """ set file encoding set encoding=utf-8 set fileencodings=utf-8,cp950 syntax on " color of syntax set ruler " set backspace=2 " we can use backspace in INSERT mode "set shiftwidth=4 "set softtabstop=4 "set noexpandtab set ru " show colum&row set ic " NONE-case-sensitive when searching set nu " show line # set hlsearch " highlight the serarch results set incsearch " search the results before completing typing the keywords set smartindent " see http://www.wretch.cc/blog/ofese/4290376 set confirm " confirm set history=100 " reserve 100 instructions that have used set cursorline " very cool """ status set laststatus=2 set statusline=%4*%<\%m%<[%f\%r%h%w]\ [%{&ff},%{&fileencoding},%Y]%=\[Position=%l,%v,%p%%] colorscheme torte """ taglist plugin nnoremap <silent> <F2> :TlistToggle<CR> let Tlist_WinWidth = 30 " the taglist width " let Tlist_WinHeight = 100 " the taglist height let Tlist_Enable_Fold_Column = 1 " dispaly the fold column let Tlist_Display_Prototype = 1 " show the prototype let Tlist_Auto_HighLight_Tag = 1 " automatically highlight the current tag in the taglist let Tlist_Exit_OnlyWindow = 1 " close vim if the taglist the only window let Tlist_File_Fold_Auto_Close = 1 " close tag folds for inactive buffers """ shortcut for tab page " ctrl + N: new tab " ctrl + C: close tab " ctrl + right arrow: next tab " ctrl + left arrow: previous tab map : tabe<CR> map : tabc<CR> map [C :tabnext<CR> map [1;5C : tabnext<CR> map [D :tabprevious<CR> map [1;5D : tabprevious<CR> """ other mappings map <F8> :marks<CR> map <F9> :registers<CR> map <F10> :map<CR>references:
http://ppt.cc/5nxS
Vim Taglist plugin manual
Mapping keys in Vim - Tutorial
沒有留言:
張貼留言