vim配置

vim的配置:

set nu
set nowrapscan
syntax on
set ai
set cindent
set shiftwidth=4
set tabstop=4
"set ignorecase
set foldenable
set foldmethod=manual
set laststatus=2
"colorscheme morning
"set foldmethod=syntax

set statusline=%-.50f\ %h%m%r
set statusline+=[%{&ff}]
set statusline+=[%Y]\
set statusline+=[%b\ :\ 0x%B]
set statusline+=%<
set statusline+=%=
set statusline+=[%{(&fenc\ ==\ \"\"?&enc:&fenc).(&bomb?\",BOM\":\"\")}]
set statusline+=(%lL,%vC)\ %P\
set statusline+=%{strftime(\"%Y-%m-%d\ %H:%M\")}

"-- supertab --
let g:SuperTabMappingForward = '<s-tab>'
let g:SuperTabMappingBackward = '<Esc>q'
"-- ctags --
nnoremap <F9> [I:let nr = input("Which one: ")<Bar>exe "normal " . nr ."[\t"<CR>
"-- taglist --
"let Tlist_Auto_Open=1
let Tlist_Exit_OnlyWindow=1
let Tlist_File_Fold_Auto_Close=1
let Tlist_WinWidth=25

"-- winmanager --
nnoremap <silent> <F6>  :FirstExplorerWindow<cr>
nnoremap <silent> <F7>  :BottomExplorerWindow<cr>
nnoremap <silent> <F8>  :WMToggle<cr>
let winManagerWindowLayout='FileExplorer|TagList'
let persistentBehaviour=0
let winManagerWidth=25

"-- mark ---
set viminfo+=! "save and restore global variable
let g:mwAutoLoadMarks = 1
let g:mwAutoSaveMarks = 1

插件附件:https://www.dropbox.com/s/f8fwsl16zbpvdl6/vim.zip

  

posted @ 2014-05-06 15:54  smallmaple  阅读(192)  评论(0编辑  收藏  举报