"```vim set nocompatible " be iMproved, required filetype off " required
" set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'vim-latex/vim-latex' Plugin 'aperezdc/vim-template' call vundle#end() " required filetype plugin indent on " required " To ignore plugin indent changes, instead use: "filetype plugin on " " Brief help " :PluginList - lists configured plugins " :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate " :PluginSearch foo - searches for foo; append `!` to refresh local cache " :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal " " see :h vundle for more details or wiki for FAQ " Put your non-Plugin stuff after this line "``` " This makes vim invoke Latex-Suite when you open a tex file. filetype plugin on set grepprg=grep\ -nH\ $* filetype indent on let g:tex_flavor='latex' " syntax enable set bg=dark set nu "设置配色方案 "colorscheme murphy colorscheme pablo "设置列高亮 set cursorcolumn "设置行线 set cursorline "显示未执行的命令 set showcmd "设置自动备份 "set backup "set backupext=.bak "保存一个原始文件 "set patchmode=.orig "设置用命令行版stardict(sdcv)查询单词 "set keywordprg=sdcv "设定字符编码20180320加入 set encoding=utf-8 set fileencodings=utf-8,cp936 set termencoding=utf-8 "设置缩进 set autoindent shiftwidth=3 "设定软tab键,用来产生四个空格20180323 set softtabstop=4 "打开dtx文件自定义命令 autocmd BufNewFile,BufRead *.dtx source ~/.vim/bundle/vim-latex/ftplugin/dtx.vim " 自定义模板所在文件夹 let g:templates_directory = '~/.vim/templates' let g:templates_user_variables = [['EMAIL', 'GetEmail'],['AUTHOR', 'GetAuthor']] function GetEmail() return 'fengzhenhua@outlook.com' endfunction function GetAuthor() return '冯振华' endfunction