我的vimrc配置文件

"vundle begin
set nocompatible "与vi不一致
filetype off
filetype plugin on "检测插件
set rtp+=~/.vim/bundle/vundle/ "载入特定目录插件
"set rtp+=$HOME/.vim/bundle/vundle/ "Windows下
call vundle#rc()
"plugin 
"Plugin 'git://git.wincent.com/command-t.git'
"vimscripts账号下的项目直接填写名称即可
Bundle 'snipMate'
"其它需填写用户/资源名称
Bundle 'gmarik/vundle'
"非github上资源
"Bundle 'git://git.wincent.com/command-t.git'
"indent
Bundle 'php.vim-html-enhanced'
"color
Bundle 'Lucius'
filetype plugin indent on
Plugin 'fatih/vim-go'
Bundle 'dgryski/vim-godef'
Bundle 'Blackrush/vim-gocode'
Bundle 'majutsushi/tagbar'
"vundle end

"simple golang config
" Remember last position
if has("autocmd")
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif

syntax on
set showcmd
set ruler
" enable backspace
set backspace=indent,eol,start
set nu
set mouse=
set ts=4 sts=4 sw=4
set encoding=utf-8
" set expandtab
set completeopt=longest,menu
autocmd Filetype python set ts=4 sts=4 expandtab
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd Filetype java setlocal omnifunc=javacomplete#Complete


syntax enable
syntax on "打开语法高亮
colorscheme desert
"set nocompatible "去掉有关vi一致性模式,避免以前版本的一些bug和局限
set nonumber
""filetype on "检测文件的类型
""filetype plugin on "检测插件
"set background=dark
set tabstop=4 "设置tab键为4个空格
set softtabstop=4 "设置软制表符宽度为4
set shiftwidth=4 "设置缩进的格数为4个字符
set autoindent "自动对齐,即每行的缩进值与上一行相等
set smartindent "智能对齐,即依据上面的格式,智能的选择对齐方式,根据语言不同智>能选择对齐
""set cindent "使用自动缩进,即按照C/C++语言的语法自动调整缩进长度
""set cinoptions={0,1s,t0,n-2,p2s,(03s,=.5s,>1s,=1s,:1s "设置C/C++语言的具体缩进方式
"set showmatch "设置匹配模式,当输入一个左括号会匹配相应右括号
"filetype plugin indent on
set incsearch "快速匹配,输入字符串就显示匹配点
set hlsearch "高亮显示查找结果所有匹配
set showcmd "命令行显示输入的命令
set showmode "命令行显示vim当前模式
"set linebreak "整词换行。整词换行就是像Word一样,当一行显示不下时,遇到是一个字时直接换行,当遇一个词时,将整个词换到下一行
"set mouse=a "使用鼠标
"set previewwindow
"set nocp
":imap  
:map ,be :BufExplorer
:map ,sh :sh
if &term=="xterm"
    set t_Co=8
    set t_Sb=^[[4%dm
    set t_Sf=^[[3%dm
endif

"netrw
let g:netrw_keepdir=0

"ctags
set tag=~/workspace/tags
set tags=tags;/
set path=~/workspace/BidMax
set path=./

"clang 
let g:clang_complete_copen=1
let g:clang_periodic_quickfix=0
let g:clang_snippets=1
let g:clang_close_preview=1
let g:clang_use_library=1
let g:clang_library_path='/usr/lib/llvm-3.0/lib/'
"let g:clang_user_options='-stdlib=libc++ -std=c++11'  
let g:clang_user_options='-stdlib=libc++ -std=c++98'

你可能感兴趣的:(开发环境)