From 40b9b7b1127d6b752b28f909fe3ea7ee4f29f28a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Fri, 28 Sep 2018 08:54:59 +0200 Subject: vim: Tweak folds --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc b/vimrc index d5cb41b..b439332 100644 --- a/vimrc +++ b/vimrc @@ -28,6 +28,7 @@ Plugin 'dhruvasagar/vim-table-mode' Plugin 'vim-scripts/iptables' Plugin 'neomutt/neomutt.vim' Plugin 'sirtaj/vim-openscad' +Plugin 'tmhedberg/SimpylFold' call vundle#end() filetype plugin indent on @@ -50,6 +51,11 @@ set encoding=utf-8 set foldmethod=syntax highlight Folded ctermbg=Black ctermfg=LightBlue +set foldtext=FoldText() +function FoldText() + return getline(v:foldstart) . ' ' +endfunction + set number set colorcolumn=82 -- cgit v1.2.3