vimrc: vim+supertab+neocomplcache+doxygentoolkit+ctags

[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 plugins
set 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}

set tags+=/usr/share/vim/vim73/tags/c_tags

""""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


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值