if filereadable("~/.vimrc.local") source ~/.vimrc.local endif packadd! termdebug " vim-plug installer if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim autocmd VimEnter * PlugInstall --sync | source $MYVIMRC endif " vim-plug plugins call plug#begin('~/.vim/vim-plug') Plug 'valloric/youcompleteme', { 'do': './install.py --clang-completer' } Plug 'rhysd/vim-clang-format' Plug 'derekwyatt/vim-fswitch' Plug 'itchyny/lightline.vim' Plug 'ambv/black' Plug 'altercation/vim-colors-solarized' Plug 'craigemery/vim-autotag' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'airblade/vim-gitgutter' Plug 'tpope/vim-fugitive' Plug 'linuor/ucmake.vim' call plug#end() " tabwidth set tabstop=4 set shiftwidth=4 " autowrite set autowrite " dark theme set background=dark " line numbers set number " always enable status line set laststatus=2 " ctags config set tags=./tags; nnoremap " autotag let g:autotagmaxTagsFileSize = 1024 * 1024 * 128 " youcomleteme config let g:ycm_autoclose_preview_window_after_insertion = 1 let g:ycm_autoclose_preview_window_after_completion = 1 nmap :YcmCompleter GoTo " lightline config let g:lightline = { 'colorscheme': 'solarized' } " Black config autocmd BufWritePre *.py execute ':Black' " vim-fswitch nmap o :FSHere " vim-colors-solarized colorscheme solarized " fzf.vim nmap :Files nmap :Tags " terminal colors hi Terminal ctermfg=fg ctermbg=NONE guifg=fg guibg=NONE guisp=NONE cterm=NONE gui=NONE " incremental searching set incsearch set hlsearch "augroup vimrc-incsearch-highlight " autocmd! " autocmd CmdlineEnter /,\? :set hlsearch " autocmd CmdlineLeave /,\? :set nohlsearch "augroup END