diff options
Diffstat (limited to 'runtime/ftplugin/erlang.vim')
-rw-r--r-- | runtime/ftplugin/erlang.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/ftplugin/erlang.vim b/runtime/ftplugin/erlang.vim index af4e910b2..2bbc345b4 100644 --- a/runtime/ftplugin/erlang.vim +++ b/runtime/ftplugin/erlang.vim @@ -19,6 +19,9 @@ else let s:did_function_definitions = 1 endif +let s:cpo_save = &cpo +set cpo&vim + if !exists('g:erlang_keywordprg') let g:erlang_keywordprg = 'erl -man' endif @@ -76,3 +79,9 @@ function ErlangFoldText() endfunction call s:SetErlangOptions() + +let b:undo_ftplugin = "setlocal foldmethod< foldexpr< foldtext<" + \ . " comments< commentstring< formatoptions<" + +let &cpo = s:cpo_save +unlet s:cpo_save |