call plug#begin(stdpath('data') . '/plugged') Plug 'altercation/vim-colors-solarized' Plug 'itchyny/lightline.vim' Plug 'Shougo/vimproc.vim', {'do': 'make'} Plug 'rhysd/vim-clang-format' Plug 'derekwyatt/vim-fswitch' Plug 'tpope/vim-obsession' Plug 'dhruvasagar/vim-prosession' Plug 'airblade/vim-gitgutter' Plug 'tpope/vim-fugitive' Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } Plug 'junegunn/fzf.vim' Plug 'christoomey/vim-tmux-navigator' Plug 'mandlm/vim-split-open' Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'autozimu/LanguageClient-neovim', { \ 'branch': 'next', \ 'do': 'bash install.sh', \ } Plug 'tpope/vim-dispatch' call plug#end() " tabwidth set tabstop=4 set shiftwidth=4 " scroll offset set scrolloff=4 " solarized dark theme colorscheme solarized set background=dark " line numbers set number " preview commands set inccommand=split " terminal mode options augroup terminal_mode autocmd! autocmd TermOpen * startinsert augroup END " ctags config set tags=./tags; nnoremap " autotag let g:autotagmaxTagsFileSize = 1024 * 1024 * 128 " lightline config let g:lightline = { 'colorscheme': 'solarized' } " clang-format let g:clang_format#auto_format = 1 let g:clang_format#enable_fallback_style = 0 " prosession let g:prosession_tmux_title = 1 let g:prosession_per_branch = 1 " fzf.vim nnoremap :Files nnoremap :Rg \b\b let g:splitopen_set_fzf_keys = 1 " deoplete let g:deoplete#enable_at_startup = 1 augroup deoplete autocmd! autocmd CompleteDone * silent! pclose! augroup END call deoplete#custom#source('_', 'matchers', ['matcher_full_fuzzy']) inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" " LanguageClient-neovim set hidden nnoremap :call LanguageClient_contextMenu() nnoremap :call LanguageClient#textDocument_definition() let g:LanguageClient_serverCommands = { \ 'python': ['pyls'], \ 'cpp': ['/usr/lib/llvm-7/bin/clangd'], \ } " autoread/checktime timer {{{ set autoread function! CheckTime(timer) checktime endfunction let timerChecktime = timer_start(4000, 'CheckTime', {'repeat': -1}) " }}} augroup cpp_settings autocmd! autocmd Filetype cpp set colorcolumn=101 augroup END