From d298bbdfb94ed37616f251ef8cbbef230281842f Mon Sep 17 00:00:00 2001 From: johannst Date: Sun, 19 May 2019 15:30:04 +0200 Subject: vimrc: remove more plugins and align tabs/spaces --- vimrc | 101 +++++++++++++++++++++++++++--------------------------------------- 1 file changed, 41 insertions(+), 60 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 5760e77..23a5912 100644 --- a/vimrc +++ b/vimrc @@ -24,15 +24,18 @@ call vundle#begin() Plugin 'VundleVim/Vundle.vim' -Plugin 'jlanzarotta/bufexplorer' -Plugin 'ap/vim-buftabline' -Plugin 'majutsushi/tagbar' +" editor enhancements +Plugin 'junegunn/fzf.vim' +Plugin 'maralla/completor.vim' Plugin 'vim-scripts/YankRing.vim' -Plugin 'johannst/Clever-Tabs' Plugin 'johannst/AsyncCmdProcessor.vim' + +" coding +Plugin 'majutsushi/tagbar' Plugin 'w0rp/ale' -Plugin 'junegunn/fzf.vim' -Plugin 'maralla/completor.vim' +Plugin 'johannst/Clever-Tabs' + +" sugar Plugin 'chriskempson/base16-vim' call vundle#end() @@ -54,16 +57,11 @@ function! s:ParseVimrcForEnabledPlugins() endfunction function! s:IsPluginEnabled(plugin) - return index(s:gEnabledPlugins, a:plugin)!=-1 + return index(s:gEnabledPlugins, a:plugin)!=-1 endfunction call s:ParseVimrcForEnabledPlugins() -if s:IsPluginEnabled('jlanzarotta/bufexplorer') - nnoremap be :call ToggleBufExplorer() - let g:bufExplorerDisableDefaultKeyMapping=1 -endif - if s:IsPluginEnabled('majutsushi/tagbar') let g:tagbar_ctags_bin=$MYCTAGS if !empty(glob(g:tagbar_ctags_bin)) @@ -91,60 +89,48 @@ if s:IsPluginEnabled('vim-scripts/YankRing.vim') "nnoremap ys :YRSearch endif -if s:IsPluginEnabled('ap/vim-buftabline') - let g:buftabline_indicators = 1 - hi TabLine ctermbg=235 ctermfg=244 cterm=none - hi TabLineSel ctermbg=208 ctermfg=255 cterm=bold - hi TabLineFill ctermbg=235 ctermfg=0 cterm=NONE - hi BufTabLineActive ctermbg=69 -endif - if s:IsPluginEnabled('johannst/AsyncCmdProcessor.vim') - execute "nnoremap fg :Async find . -type f -exec grep -nHI {} +"repeat('', 6) - execute "vnoremap fg \"fy:Async find . -type f -exec grep -nHI f {} +"repeat('', 6) + execute "nnoremap fg :Async find . -type f -exec grep -nHI {} +"repeat('', 6) + execute "vnoremap fg \"fy:Async find . -type f -exec grep -nHI f {} +"repeat('', 6) endif if s:IsPluginEnabled('w0rp/ale') - let g:ale_sign_column_always = 1 - let g:ale_sign_error = '>>' - let g:ale_sign_warning = '--' - let g:ale_set_highlights = 1 - "let g:ale_open_list = 1 - let g:ale_change_sign_column_color = 1 - hi link ALESignColumnWithoutErrors LineNr - hi link ALESignColumnWithErrors LineNr + let g:ale_sign_column_always = 1 + let g:ale_sign_error = '>>' + let g:ale_sign_warning = '--' + let g:ale_set_highlights = 1 + "let g:ale_open_list = 1 + let g:ale_change_sign_column_color = 1 + hi link ALESignColumnWithoutErrors LineNr + hi link ALESignColumnWithErrors LineNr endif if s:IsPluginEnabled('junegunn/fzf.vim') - nnoremap ft :BTags - nnoremap fc :Tags - nnoremap ff :Files - nnoremap fp :Files - nnoremap fl :Lines - nnoremap fb :Buffers - nnoremap fs :History/ - nnoremap fh :History: - let g:fzf_action = { 'ctrl-s': 'split', - \ 'ctrl-v': 'vsplit' } - - "imap (fzf-complete-path) - - command! -bang -nargs=* Rg - \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always '.shellescape(), 1, - \ 0 ? fzf#vim#with_preview('up:60%') - \ : fzf#vim#with_preview('right:50%:hidden', '?'), - \ 0) - nnoremap rg :Rg + nnoremap ft :BTags + nnoremap fc :Tags + nnoremap ff :Files + nnoremap fp :Files + nnoremap fl :Lines + nnoremap fb :Buffers + nnoremap fs :History/ + nnoremap fh :History: + let g:fzf_action = { 'ctrl-s': 'split', + \ 'ctrl-v': 'vsplit' } + + command! -bang -nargs=* Rg + \ call fzf#vim#grep( + \ 'rg --column --line-number --no-heading --color=always '.shellescape(), 1, + \ 0 ? fzf#vim#with_preview('up:60%') + \ : fzf#vim#with_preview('right:50%:hidden', '?'), + \ 0) + nnoremap rg :Rg endif if s:IsPluginEnabled('chriskempson/base16-vim') - let g:gBase16ColorEnabled = 1 - syntax on - let base16colorspace=256 + syntax on + let base16colorspace=256 else - let g:gBase16ColorEnabled = 0 - colorscheme johannst + colorscheme johannst endif "}}} @@ -266,11 +252,6 @@ nnoremap n :noh execute "vnoremap r \"ry:%s/r/r/gc" . repeat('', 3) execute "vnoremap rb \"ry:bufdo%s/r/r/gc" . repeat('', 3) -if s:IsPluginEnabled('osyo-manga/vim-over') - execute "vnoremap r \"ry:OverCommandLine %s/r/r/gc" . repeat('', 3) - "execute "vnoremap rb \"ry:OverCommandLine bufdo%s/r/r/gc" . repeat('', 3) -endif - "}}} "{{{ Buffer & Splits -- cgit v1.2.3