From: Stefan Huber Date: Thu, 17 Dec 2020 07:50:22 +0000 (+0100) Subject: plugin: Add auto foldcolumn setting X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=7db1fbf5bd290509aaec6c8e002d6f0a3617aa04;p=vimconf.git plugin: Add auto foldcolumn setting --- diff --git a/init.vim b/init.vim index d380726..bd9cfe3 100644 --- a/init.vim +++ b/init.vim @@ -31,6 +31,7 @@ set smartindent set incsearch set hlsearch +set foldcolumn=4 set colorcolumn=+1 set mouse=a set wildmenu @@ -165,6 +166,11 @@ au BufEnter *.cpp,*.cc,*.cxx let b:fswitchdst='h,hxx,hpp,hh' au BufEnter *.h,*.hh,*.hxx let b:fswitchdst='cc,c,cxx,cpp' au BufNewFile *.{h,hpp,hxx} call AddIncludeGuards() +augroup autofoldcolumn + au! + au CursorHold,BufWinEnter * AutoOrigamiFoldColumn +augroup END + """""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Some plugin-specific settings diff --git a/plugins.vim b/plugins.vim index b082c81..88df54d 100644 --- a/plugins.vim +++ b/plugins.vim @@ -15,6 +15,8 @@ Plug 'mhinz/vim-signify' Plug 'tpope/vim-fugitive' Plug 'airblade/vim-rooter' +Plug 'benknoble/vim-auto-origami' + Plug 'ctrlpvim/ctrlp.vim' Plug 'scrooloose/nerdcommenter'