"不兼容vi set nocompatible
"自动缩进 set autoindent "设置菜单语言 let $LANG = 'en' "set message language set langmenu=en "set menu's language of gvim. no spaces beside '=' set backspace=indent,eol,start "设置行号 set nu! "设置tab 4 set ts=4 set ruler " 高亮显示匹配的括号 set showmatch " 匹配括号高亮的时间(单位是十分之一秒) set matchtime=1 " 在被分割的窗口间显示空白,便于阅读 set fillchars=vert: ,stl: ,stlnc: " 设定默认解码 set fenc=utf-8 set fencs=utf-8,usc-bom,euc-jp,gb18030,gbk,gb2312,cp936 " 可以在buffer的任何地方使用鼠标(类似office中在工作区双击鼠标定位) set mouse=a set selection=exclusive set selectmode=mouse,key " 启动的时候不显示那个援助索马里儿童的提示 "set shortmess=atI " 不让vim发出讨厌的滴滴声 set noerrorbells
" 在处理未保存或只读文件的时候,弹出确认 set confirm autocmd InsertLeave * se nocul " 用浅色高亮当前行 autocmd InsertEnter * se cul " 用浅色高亮当前行 hi CursorLine guibg=Grey40 guifg=red term=BOLD "set statusline=%F%w [File=%f] [POS=%l,%v][%p%%] %{strftime("%d/%m/%y - %H:%M")} "状态行显示的内容 set foldenable " 允许折叠 set foldmethod=manual " 手动折叠 " 语法高亮 syntax on " 不要备份文件 set nobackup "设置字体 "set guifont=monospace 18 " HighLight current line au WinLeave * set nocursorline "nocursorcolumn au WinEnter * set cursorline "cursorcolumn set cursorline "cursorcolumn "Tarbar let g:tarbar_width=25 let g:tarbar_autofocus=1 let NERDTreeQuitOnOpen= 1 "nmap <F6> :TagbarToggle<CR> "powerline set guifont=PowerlineSymbols for Powerline set nocompatible set t_Co=256 " NERDTree config autocmd vimenter * NERDTree autocmd VimEnter * wincmd w let NERDTreeShowBookmarks=1 let NERDTreeQuitOnOpen=0 autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") &&b:NERDTreeType == "primary") | q | endif