我个人的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 ( ()i
:inoremap ) =ClosePair(')')
:inoremap { {}i
:inoremap } =ClosePair('}')
:inoremap [ []i
:inoremap ] =ClosePair(']')
:inoremap ' ''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 = ''
set completeopt=menu,menuone

noremap  
let g:ycm_semantic_triggers =  {
    		\ 'c,cpp,python,java,go,erlang,perl': ['re!\w{2}',"."],
            \ 'cs,lua,javascript': ['re!\w{2}'],
    		\ }
map  g:YcmCompleter GoToDefinitionElseDeclaration
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

你可能感兴趣的:(我个人的vimrc配置)