vim bundle configuration

8 篇文章 0 订阅
""""""""""""""""""""" Vundle
set nocompatible              " be iMproved
filetype off                  " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage vundle
" required!
Bundle 'gmarik/vundle'
" My bundles here:
" original repos on GitHub
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
Bundle 'scrooloose/syntastic'
Bundle 'scrooloose/nerdtree'
Bundle 'Valloric/YouCompleteMe'
""Bundle 'Lokaltog/vim-powerline'
Bundle 'vim-scripts/AutoClose'
Bundle 'kien/ctrlp.vim'


" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
Bundle 'SuperTab'
Bundle 'winmanager'
Bundle 'vimwiki'
Bundle 'taglist.vim'
Bundle 'c.vim'
Bundle 'minibufexpl.vim'
Bundle 'mru.vim'
Bundle 'comments.vim'


" non-GitHub repos
Bundle 'git://git.wincent.com/command-t.git'
" Git repos on your local machine (i.e. when working on your own plugin)
Bundle 'file:///Users/gmarik/path/to/plugin'
filetype plugin indent on     " required!
""""""""""""""""""""" Vundle


set nu
set tabstop=4
set expandtab
set listchars=tab:>-,trail:-
set hls
set autoindent
set smartindent
set smarttab
set softtabstop=4
set shiftwidth=4
set mouse=a
set history=2000
set confirm
set clipboard+=unnamed
set tags=tags;
set autochdir
set encoding=utf-8
set helplang=cn
set report=0
set wrap


let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Auto_Open=0
let Tlist_File_Fold_Auto_Close=1
let Tlist_Use_Right_Window=0
" Quick fix
set cscopequickfix=s-,c-,d-,i-,t-,e-
let g:miniBufExplMapCTabSwitchBufs=1
let g:miniBufExplMapWindowNavVim=1
" Super Tab
set completeopt=longest,menu
let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType="<C-X><C-O>"
syntax enable
syntax on


set foldenable
set foldmethod=manual


" WinManager Config   
let g:winManagerWindowLayout='FileExplorer|TagList'     
let g:AutoOpenWinManager=1
nmap wm :WMToggle<cr>
" wincmd H
" Enable check python
let g:syntastic_enable_perl_checker = 1
let g:syastic_python_checkers = ['pylint', 'pyflakes', 'python']
" Enable check perl
let g:syntastic_enable_perl_checker = 1
let g:syntastic_perl_checkers = ['perl']
" Enable check html
let g:syntastic_enable_html_checker = 1
let g:syntastic_html_checkers = ['tidy']
" Enable check xml
let g:syntastic_enable_xml_checker = 1
let g:syntastic_xml_checkers = ['xmllint']
" Enable check c
let g:syntastic_enable_c_checker = 1
let g:syntastic_c_checkers = ['splint', 'gcc']
" Enable check c++
let g:syntastic_enable_cpp_checker = 1
let g:syntastic_cpp_checkers = ['cppcheck', 'gcc']
" YCM
let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/vundle/YouCompleteMe/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_confirm_extra_conf = 0
let g:ycm_semantic_triggers = {}
let g:ycm_semantic_triggers.c = ['->', '.', ' ', '(', '[', '&']
" Enable check java
let g:syntastic_enable_java_checker = 1
let g:syntastic_java_checkers = ['javac']
" Base config for syntastic
let g:syntastic_check_on_open = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_loc_list_height = 6
let g:syntastic_enable_highlighting = 1
let g:syntastic_always_populate_loc_list=1
"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值