From 7db1fbf5bd290509aaec6c8e002d6f0a3617aa04 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Thu, 17 Dec 2020 08:50:22 +0100 Subject: [PATCH] plugin: Add auto foldcolumn setting --- init.vim | 6 ++++++ plugins.vim | 2 ++ 2 files changed, 8 insertions(+) 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' -- 2.39.5