dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

commit cc7514b872392622049e8c60ddf6e21a9c1bb298 (patch)
parent 758f6c1ab7c46186ca0ff97d43d8a6e6a809268b
Author: Alexander Karle <akarle@umass.edu>
Date:   Mon,  1 Oct 2018 22:53:33 -0400

vim: VimL fold expression improvements

Diffstat:
Mvim/ftplugin/vim.vim | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vim/ftplugin/vim.vim b/vim/ftplugin/vim.vim @@ -4,9 +4,9 @@ let b:viml_fold_markers = split(&foldmarker, ',') function! VimLFoldByFunctionAndMarker(lnum) abort let l = getline(a:lnum) - if l =~ '^function' + if l =~ '^\s*function!\? ' return 'a1' - elseif l =~ '^endfunction' + elseif l =~ '^\s*endfunction' return 's1' elseif l =~ b:viml_fold_markers[0] return 'a1'