diff options
Diffstat (limited to '')
-rw-r--r-- | vimrc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -69,11 +69,13 @@ set foldmethod=expr set foldtext=MyFoldText() function! MyFoldText() - let line = getline(v:foldstart) + let indent = repeat(' ', indent(v:foldstart)) + let line = substitute(getline(v:foldstart), '\v^\s+', '', '') let folded_lines = v:foldend - v:foldstart - return line . ' (' . folded_lines . 'L)' + return indent . line . ' (' . folded_lines . 'L)' endfunction + " Autocommands {{{1 if has("autocmd") filetype plugin indent on |