Plug 'Raimondi/delimitMate'
"zhuti
Plug 'tomas/molokai'
endfunction " Put your costom configurations here, e.g., change the colorscheme. function! UserConfig() autocmd BufNewFile *.py,*.cc,*.sh,*.java exec ":call SetTitle()" func SetTitle() "如果文件类型为.py文件 if &filetype == 'python' call setline(1, "\#!/usr/bin/evn python") call setline(2, "\# -*- coding: UTF-8 -*- ") call setline(3, "\# Author: starty") call setline(4, "\# Created Time : ".strftime("%c")) call setline(5, "\# File Name: ".expand("%")) call setline(6, "\# Description:") endif endfunc " If you enable airline layer and have installed the powerline fonts, set it here. let g:airline_powerline_fonts=1 set bg=dark set cursorline set cursorcolumn "显示tab和空格 set list " 设置tab和空格样式 set lcs=tab:\|\ ,nbsp:%,trail:- " 设定行首tab为灰色 highlight LeaderTab guifg=#666666 " 匹配行首tab match LeaderTab /^\t/ map <F2> :SyntasticCheck<CR> let g:indentLine_char = '|' let g:indentLine_color_term = 239 "映射到ctrl+i键 map <F3> :IndentLinesToggle<CR> "for python docstring ", 特别有用 au FileType python let b:delimitMate_nesting_quotes = ['"'] "关闭某些类型文件的自动补全,比如说关闭python文件的 "au FileType python let b:delimitMate_autoclose = 0 endfunction