Vim: updated plugins (vista, targets, vice)
This commit is contained in:
22
.vimrc
22
.vimrc
@@ -56,7 +56,9 @@ Plugin 'justinmk/vim-sneak' " easy movement
|
||||
"Plugin 'easymotion/vim-easymotion'
|
||||
Plugin 'ludovicchabant/vim-gutentags' "Auto generate tags
|
||||
"Plugin 'andymass/vim-matchup' " Improve if-else matches
|
||||
Plugin 'vim-scripts/taglist.vim'
|
||||
"Plugin 'vim-scripts/taglist.vim'
|
||||
Plugin 'liuchengxu/vista.vim'
|
||||
Plugin 'wellle/targets.vim'
|
||||
" }}}
|
||||
|
||||
" Git integration {{{
|
||||
@@ -64,6 +66,7 @@ Plugin 'vim-scripts/taglist.vim'
|
||||
Plugin 'mhinz/vim-signify' " Mark edited lines - faster gitgutter
|
||||
"Plugin 'rhysd/git-messenger.vim' " show git history
|
||||
"Plugin 'tpope/vim-fugitive' " Git integration
|
||||
Plugin 'lambdalisue/gina.vim'
|
||||
" }}}
|
||||
|
||||
" Syntax for random filetypes {{{
|
||||
@@ -75,10 +78,9 @@ Plugin 'pboettch/vim-cmake-syntax'
|
||||
|
||||
" Colorschemes {{{
|
||||
Plugin 'flazz/vim-colorschemes' " lots of colorschemes
|
||||
"Plugin 'octol/vim-cpp-enhanced-highlight'
|
||||
"Plugin 'vim-scripts/CycleColor'
|
||||
"Plugin 'jeaye/color_coded'
|
||||
"Plugin 'thiagoalessio/rainbow_levels.vim'
|
||||
Plugin 'fielding/vice'
|
||||
" }}}
|
||||
|
||||
" Other plugins (external tools, etc) {{{
|
||||
@@ -233,7 +235,7 @@ match Error /\s\+$\|DU\cPA/
|
||||
|
||||
" Removing scrollbars
|
||||
if !has("gui_running")
|
||||
colorscheme badwolf
|
||||
colorscheme vice
|
||||
set background=dark
|
||||
" To show special characters in Vim
|
||||
set listchars=tab:▸\ ,trail:¬
|
||||
@@ -476,3 +478,15 @@ nnoremap <silent> <space>j :<C-u>CocNext<CR>
|
||||
nnoremap <silent> <space>k :<C-u>CocPrev<CR>
|
||||
" Resume latest coc list
|
||||
nnoremap <silent> <space>p :<C-u>CocListResume<CR>
|
||||
|
||||
" Vista configuration
|
||||
function! NearestMethodOrFunction() abort
|
||||
return get(b:, 'vista_nearest_method_or_function', '')
|
||||
endfunction
|
||||
|
||||
set statusline+=%{NearestMethodOrFunction()}
|
||||
|
||||
" By default vista.vim never run if you don't call it explicitly.
|
||||
"
|
||||
" If you want to show the nearest function in your statusline automatically
|
||||
autocmd VimEnter * call vista#RunForNearestMethodOrFunction()
|
||||
|
||||
Reference in New Issue
Block a user