我个人的vimrc配置

我个人的vimrc配置

更新于2020-3-27 14:27
没有什么介绍,纯粹就是初学Linux系统时根据网站自己配置的vimrc,以后有更改将进行更新。

set t_Co=256 " necessary for AirlineTheme
set laststatus=2
set statusline=%F%m%r%h
set foldmethod=syntax
set tabstop=4
set relativenumber
set number
set fencs=utf-8,gbk
set encoding=utf-8
set cindent
set expandtab
set softtabstop=4
set shiftwidth=4
set textwidth=79
set autoindent
set fileformat=unix
set showmatch
set smartcase
set autochdir
set autoread
set wildmenu
syntax on
set wildmode=longest:list,full
let mapleader=";"

set splitright
set splitbelow


:inoremap ( ()<ESC>i
:inoremap ) <C-R>=ClosePair(')')<CR>
:inoremap { {}<ESC>i
:inoremap } <C-R>=ClosePair('}')<CR>
:inoremap [ []<ESC>i
:inoremap ] <C-R>=ClosePair(']')<CR>
:inoremap ' ''<ESC>i
:inoremap " ""<ESC>i


"Enable folding
set foldmethod=indent
set foldlevel=99

let g:SimpylFold_docstring_preview=1
let g:ycm_global_ycm_extra_conf='~/.vim/bundle/YouCompleteMe/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'
let g:ycm_autoclose_preview_window_after_completion=1
let g:ycm_min_num_of_chars_for_completion=1
let g:ycm_add_preview_to_completeopt = 0
let g:ycm_show_diagnostics_ui = 0
let g:ycm_server_log_level = 'info'
let g:ycm_min_num_identifier_candidate_chars = 2
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_complete_in_strings=1
let g:ycm_key_invoke_completion = '<c-z>'
set completeopt=menu,menuone

noremap <c-z> <NOP>
let g:ycm_semantic_triggers =  {
    		\ 'c,cpp,python,java,go,erlang,perl': ['re!\w{2}',"."],
            \ 'cs,lua,javascript': ['re!\w{2}'],
    		\ }
map <leader> g:YcmCompleter GoToDefinitionElseDeclaration<CR>
let python_hightlight_all=1
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree


set nocompatible              " required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'tmhedberg/SimpylFold'
Plugin 'vim-scripts/indentpython.vim'
Bundle 'Valloric/YouCompleteMe'
Plugin 'scrooloose/syntastic'
Plugin 'nvie/vim-flake8'
Plugin 'scrooloose/nerdtree'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}



" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)


" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值