[click here to DOWNLOAD vimrc for free]
"""编辑配置文件 /etc/vim/vimrc 全局有效""""
"""拷贝插件至 /usr/share/vim/vim73/plugin 目录""""
""""ljl, edited on Tue Sep 3, 2013""""
filetype plugin indent on "Enable filetype pluginsset completeopt=longest,menu
set history=400
set nocompatible
"set fileencoding=gb2312,gb18030,utf-8
set termencoding=utf-8
set encoding=prc
"Configure backspace so ti acts as it should act
set backspace=2
set backspace=eol,start,indent
set whichwrap+=<,>,h,l
set ignorecase "Ignore case when searching
set smartcase "When searching try to be smart about cases
set hlsearch "Highlight search results
set incsearch "Makes search act like search in modern browsers
set ruler "Show current position
set showmatch "Show matching brackets when text indicator is over them
set mat=2 "How many tenths of a second to blink when matching brackets
set hidden
set mouse=a
set nu
set cindent
set mouse=a
"set to auto read when a file is changed from the outside
set autoread
set magic
set wildmenu
set hid
"No annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500
""""""""""Colors and Fonts""""""""""""""
syntax enable "Enable syntax highlighting
set encoding=utf8 "Set utf8 as standard encoding and en_US as the standard language
"""""""Files, backups and undo"""""""""""
set nobackup
set nowb
set noswapfile
set autochdir
set smarttab "Be smart when using tabs
set sw=4 "set shiftwidth=4
set ts=4 "set tabstop=4
set nu
set ai "autoindent
set si "smartindent
set wrap "Wrap lines
"""""""""""PLUGINS""""""""""""""""""""""
""" {ctags -R *} """{vim -t para_name} """{ctrl+] } """{ctrl+T}
""""Supertab""""
let g:SuperTabDefaultCompletionType="context"
""""neocomplcache""""
let g:acp_enableAtStarup = 0 "Disble AutoComplPop.
let g:neocomplcache_enable_at_startup = 1 "Use neocomplcache.
let g:neocomplcache_enable_smart_case = 1 "Use smartcase.
let g:neocomplcache_enable_camel_case_completion = 1 "Use camel case completion.
let g:neocomplcache_enable_underbar_completion = 1 "Use underbar completion.
let g:neocomplcache_min_syntax_length = 3 "Set minimum syntax keyword length.
""""DoxygenToolkit""""
"用VIM编辑文本时,常用如下3条命令
":Dox 函数注释
":DoxAuthor 作者注释
":DoxLic 版权注释
let g:DoxygenToolkit_briefTag_pre="@Synopsis: "
let g:DoxygenToolkit_paramTag_pre="@Param: "
let g:DoxygenToolkit_returnTag="@Returns: "
let g:DoxygenToolkit_authorName="jinliang.liu@outlook.com"
let g:DoxygenToolkit_licenseTag="GPL"
let s:licenseTag = "Copyright(c)\<enter>"
let s:licenseTag = s:licenseTag . "For free\<enter>"
let s:licenseTag = s:licenseTag . "All right reserved\<enter>"
let g:DoxygenToolkit_licenseTag = s:licenseTag
let g:DoxygenToolkit_briefTag_funcName="yes"
let g:doxygen_enhanced_color=1
[RESOURCES] www.vim.org