vim配置

syntax on
set shiftwidth=4
set tabstop=4
set softtabstop=4
set ruler
set nu
set expandtab
set history=100
set pastetoggle=<F9>
set cursorline
filetype plugin on
set omnifunc=syntaxcomplete#Complete
nmap <F10> :NERDTree <CR>

colorscheme tir_black
if &term =~ "xterm"
" 256 colors
let &t_Co = 256
" restore screen after quitting
let &t_ti = "\<Esc>7\<Esc>[r\<Esc>[?47h"
let &t_te = "\<Esc>[?47l\<Esc>8"
if has("terminfo")
let &t_Sf = "\<Esc>[3%p1%dm"
let &t_Sb = "\<Esc>[4%p1%dm"
else
let &t_Sf = "\<Esc>[3%dm"
let &t_Sb = "\<Esc>[4%dm"
endif
endif

posted @ 2015-07-14 23:47  gray035  阅读(132)  评论(0编辑  收藏  举报