aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-23 10:01:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-23 10:01:51 +1200
commita1bcf1179f7abc500c83defa3144d7af34f3f68c (patch)
tree7c841ea0f8a3ec7450f93916566a2e32c4c35f47 /vim
parent16ad93476a0258688464918cdbd7fcbc25ab6cc5 (diff)
downloaddotfiles-a1bcf1179f7abc500c83defa3144d7af34f3f68c.tar.gz
Add foldexpr function deletion to undo
Diffstat (limited to 'vim')
-rw-r--r--vim/ftplugin/markdown.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/vim/ftplugin/markdown.vim b/vim/ftplugin/markdown.vim
index 60e3667c..9b2a0c12 100644
--- a/vim/ftplugin/markdown.vim
+++ b/vim/ftplugin/markdown.vim
@@ -41,7 +41,7 @@ function! MarkdownFold()
endfunction
setlocal foldexpr=MarkdownFold()
setlocal foldmethod=expr
-let b:undo_ftplugin .= '|setlocal foldexpr< foldmethod<'
+let b:undo_ftplugin .= '|delfunction MarkdownFold|setlocal foldexpr< foldmethod<'
" Spellcheck documents we're actually editing (not just viewing)
if &modifiable && !&readonly