我的VIM配置文件
set nocompatible "去掉讨厌的有关vim一致性模式,避免以前版本的一些bug和局限. set history=500 "设置命令历史记录为50条 set incsearch "搜索选项 set nobackup "关闭备份文件 set noswapfile "关闭交换文件 set viminfo+=! "保存全局变量 set iskeyword+=_,$,@,%,#,- "带有如下符号的单词不要被换行分割 set backspace=2 " 使回格键(backspace)正常处理indent, eol, start等 set whichwrap+=< ,>,,l " 允许backspace和光标键跨越行边界 "编码设置 set encoding=utf-8 "set termencoding=utf-8 set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 " 如果你要打开的文件编码不 set fileencoding=utf-8 set termencoding=utf-8 "解决中文菜单乱码 set langmenu=zh_CN.utf-8 source $VIMRUNTIME/delmenu.vim source $VIMRUNTIME/menu.vim "解决console输出乱码 language messages zh_cn.utf-8 "界面设置 colo rdark "配色方案 set cmdheight=1 "命令行高度 set shortmess=atI "启动的时候不显示那个援助索马里儿童的提示 set guioptions-=T set mousemodel=popup "set guifont=courier\ 9 "fencview.vim 插件设置 let g:fencview_autodetect = 1 "打开文件时自动识别编码 let g:fencview_checklines = 10 "检查前后10行来判断编码 "文件设置 filetype on "侦测文件类型 filetype indent on "为特定文件类型载入相关缩进文件 "编程设定 set number "显示行号 syntax on "语法高亮显示 set wildmenu " 增强模式中的命令行自动完成操作 set autoindent "使用自动对起,也就是把当前行的对起格式应用到下一行 set smartindent "依据上面的对起格式,智能的选择对起方式,对于类似C语言编 set tabstop=4 "设置tab键为4个空格 set shiftwidth=4 "设置当行之间交错时使用4个空格 set softtabstop=4 set smarttab set expandtab set shiftround set ai set foldmethod=syntax set foldlevel=100 "启动vim时不要自动折叠代码 set showmatch "设置匹配模式,类似当输入一个左括号时会匹配相应的那个右括号 set matchtime=5 " 匹配括号高亮的时间(单位是十分之一秒) set fdm=marker set ff=unix set nowrap filetype plugin on " 可以在buffer的任何地方使用鼠标(类似office中在工作区双击鼠标定位) set mouse=a set selection=exclusive set selectmode=mouse,key " 在被分割的窗口间显示空白,便于阅读 set fillchars=vert:\ ,stl:\ ,stlnc:\ " 用空格键来开关折叠 set foldenable set foldmethod=manual nnoremap @=((foldclosed(line('.')) < 0) ? 'zc' : 'zo') " minibufexpl插件的一般设置 let g:miniBufExplMapWindowNavVim = 1 let g:miniBufExplMapWindowNavArrows = 1 let g:miniBufExplMapCTabSwitchBufs = 1 let g:miniBufExplModSelTarget = 1 """""""""""""""""""""""""""""" " winManager setting """""""""""""""""""""""""""""" "let g:winManagerWindowLayout = "BufExplorer,FileExplorer|TagList" "let g:winManagerWidth = 30 "let g:defaultExplorer = 0 "nmap :FirstExplorerWindow "nmap :BottomExplorerWindow "nmap wm :WMToggle "F3 NERDTree 切换 map :NERDTreeToggle imap :NERDTreeToggle let Tlist_WinWidth=20 set lines=35 set columns=120 " 打开javascript折叠 let b:javascript_fold=1 " 打开javascript对dom、html和css的支持 let javascript_enable_domhtmlcss=1
下载: Vim



Effortless complications might need fixing, and that’s what you’ve achieved. All my situations are now solved!
Fascinating level of view on the theme, for no reason idea I’d agree… But I do!! Appreciate it once again for the wonderful information – Normally the finest, Joe.