Folds inserted by a snippet are left closed
tomushkin opened this issue · 1 comments
tomushkin commented
The code responsible for opening folds doesn't do anything currently.
I believe just foldopen! on the snippet line is correct.
diff --git a/autoload/snipMate.vim b/autoload/snipMate.vim
index 4952879..366ba6f 100644
--- a/autoload/snipMate.vim
+++ b/autoload/snipMate.vim
@@ -42,7 +42,7 @@ function! snipMate#expandSnip(snip, version, col) abort
" Open any folds snippet expands into
if &foldenable
- silent! exec lnum . ',' . (lnum + len(snipLines) - 1) . 'foldopen'
+ silent! exec lnum . 'foldopen!'
endif
aug snipmate_changes
ajzafar commented
Thanks for the contribution! It's merged in master!