syn on "语法支持 colorscheme murphy set go= "common conf {{ 通用配置 "set ai "自动缩进 set bs=2 "在insert模式下用退格键删除 set showmatch "代码匹配 "set laststatus=2 "总是显示状态行 set expandtab "以下三个配置配合使用,设置tab和缩进空格数 set shiftwidth=4 set tabstop=4 "set cursorline "为光标所在行加下划线 set number "显示行号 set autoread "文件在Vim之外修改过,自动重新读入 set mousemodel=popup set ignorecase "检索时忽略大小写 "set fileencodings=uft-8,gbk "使用utf-8或gbk打开文件 set hls "检索时高亮显示匹配项 set helplang=cn "帮助系统设置为中文 "set foldmethod=syntax "代码折叠 "}} "conf for plugins {{ 插件相关的配置 "状态栏的配置 "powerline{ set guifont=PowerlineSymbols\ for\ Powerline set nocompatible set t_Co=256 let g:Powerline_symbols = 'fancy' "} "pathogen是Vim用来管理插件的插件 "pathogen{ call pathogen#infect() "把~/.vim/addons,作为插件目录 " call pathogen#runtime_append_all_bundles() "把插件放到~/.vim/bundles,将自动安装插件 "} "}} let g:SuperTabDefaultCompletionType="context" "let g:neocomplcache_enable_at_startup = 1 "let g:NeoComplCache_DisableAutoComplete = 1 "let g:SuperTabDefaultCompletionType = '<C-X><C-U>' "使鼠标可点击复制 set mouse=a "设置字体 set guifont=文泉驿等宽微米黑\ 9 set lines=38 columns=116
设置双击文本文件直接使用GVIM打开:
sudo gvim /etc/gnome/defaults.list
text/plain=gedit.desktop # 修改为 text/plain=gvim.desktop