From 80380aace77521bea4892028b419729b8fe9555c Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 20 Oct 2023 00:25:03 +0800 Subject: Update vim config --- .vim/after/ftplugin/ruby.vim | 5 +++-- .vim/after/plugin/gutentags.vim | 2 +- .vim/after/plugin/minpac.vim | 5 +++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.vim/after/ftplugin/ruby.vim b/.vim/after/ftplugin/ruby.vim index c9f7e91..e867f90 100644 --- a/.vim/after/ftplugin/ruby.vim +++ b/.vim/after/ftplugin/ruby.vim @@ -1,2 +1,3 @@ -set shiftwidth=2 -set softtabstop=2 +setlocal shiftwidth=2 +setlocal softtabstop=2 +setlocal foldmethod=indent diff --git a/.vim/after/plugin/gutentags.vim b/.vim/after/plugin/gutentags.vim index 8e38294..35cc401 100644 --- a/.vim/after/plugin/gutentags.vim +++ b/.vim/after/plugin/gutentags.vim @@ -7,7 +7,7 @@ let g:gutentags_ctags_extra_args += ['--c-kinds=+px'] let g:gutentags_ctags_extra_args += ['--output-format=e-ctags'] let g:gutentags_define_advanced_commands = 1 -let $GTAGSLABEL = 'native-pygments' +let $GTAGSLABEL = 'pygments' let g:gutentags_modules = [] if executable('ctags') diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim index 54593ad..b63bbfa 100644 --- a/.vim/after/plugin/minpac.vim +++ b/.vim/after/plugin/minpac.vim @@ -50,6 +50,11 @@ function! InitMinpac() abort call minpac#add('https://github.com/junegunn/vim-easy-align') call minpac#add('https://github.com/romainl/vim-qf.git') call minpac#add('https://github.com/tpope/vim-scriptease.git') + call minpac#add('https://github.com/Konfekt/FastFold', {'type': 'start'}) + + " Add end after if, do, def in Ruby. + " Add endif, endfunction in Vimscript. + call minpac#add('https://github.com/tpope/vim-endwise', {'type': 'start'}) call minpac#add('https://github.com/tpope/vim-commentary') call minpac#add('https://github.com/tpope/vim-eunuch.git') -- cgit v1.2.3