1. 插件管理器 Vundle
安装
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
配置 ```kotlin “ show existing tab with 4 spaces width set tabstop=4 set shiftwidth=4 “ On pressing tab, insert 4 spaces set expandtab set softtabstop=4 “ Show row number set number “ set showcmd “ Support 256 colors set t_Co=256 “ Press Enter and keep the same indent with last line set autoindent set cursorline set wrap “ Wrap but keep word complementary set linebreak “ Highlight matched brace, bracket and parenthesis set showmatch “ Highlight search set hlsearch set autochdir
colorscheme onedark “ colorscheme solarized filetype indent on
“ Plugin - Vundle filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin ‘VundleVim/Vundle.vim’ “ Plugin ‘Valloric/YouCompleteMe’ Plugin ‘vim-airline/vim-airline’ Plugin ‘vim-airline/vim-airline-themes’ Plugin ‘Yggdroot/indentLine’ Plugin ‘jiangmiao/auto-pairs’ Plugin ‘scrooloose/nerdcommenter’ Plugin ‘airblade/vim-gitgutter’ Plugin ‘scrooloose/nerdtree’ call vundle#end() filetype plugin indent on
“ Plugin - indentLine let g:indentLine_setColors=0
“ Plugin - YouCompleteMe “ let g:ycm_global_ycm_extra_conf=’~/.ycm_extra_conf.py’ “ let g:ycm_confirm_extra_conf=0 “ set completeopt=longest,menu “ let g:ycm_path_to_python_interpreter=’/usr/share/Anaconda3/bin/python’ “ let g:ycm_seed_identifiers_with_syntax=1 “ let g:ycm_complete_in_comments=1 “ let g:ycm_collect_identifiers_from_comments_and_strings=0 “ let g:ycm_min_num_of_chars_for_completion=2 “ let g:ycm_autoclose_preview_window_after_completion=1 “ let g:ycm_cache_omnifunc=0 “ let g:ycm_complete_in_strings=1
let g:airline_powerline_fonts = 1 “ vim-airline let g:airline_theme=’hybridline’ let g:airline#extensions#tabline#enabled=1 if !exists(‘g:airline_symbols’) let g:airline_symbols = {} endif “ let g:airline_symbols.whitespace = ‘-‘ “ let g:airline_left_sep = ‘>’ “ let g:airline_right_sep = ‘<’ “ let g:airline_symbols.linenr = ‘|’ “ let g:airline_symbols.maxlinenr = ‘ row’
“ Plugin - vim-gitgutter let g:gitgutter_max_signs = 1000
“Use 24-bit (true-color) mode in Vim/Neovim when outside tmux.
“If you’re using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux’s 24-bit color support
“(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.)
if (empty($TMUX))
if (has(“nvim”))
“For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 >
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
“For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 >
“Based on Vim patch 7.4.1770 (guicolors
option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd >
“ < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 >
if (has(“termguicolors”))
set termguicolors
endif
endif
map
<a name="oOLuK"></a>
## VIM 编译
```bash
./configure --prefix=/path/to/prefix --disable-perlinterp --enable-rubyinterp --enable-multibyte --enable-pythoninterp --with-features=huge