From f3ce8319c46dbd6f0a8c31b09f828277df820d92 Mon Sep 17 00:00:00 2001 From: alpaca_taichou Date: Wed, 25 Sep 2013 14:36:37 +0900 Subject: [PATCH] Changed behavior of b:undo_ftplugin --- ftplugin/snippet.vim | 4 +++- indent/snippet.vim | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ftplugin/snippet.vim b/ftplugin/snippet.vim index 99235a6..ea7d243 100644 --- a/ftplugin/snippet.vim +++ b/ftplugin/snippet.vim @@ -29,6 +29,8 @@ set cpo&vim if !exists('b:undo_ftplugin') let b:undo_ftplugin = '' +else + let b:undo_ftplugin = '|' endif setlocal expandtab @@ -37,7 +39,7 @@ let &l:softtabstop=&tabstop let &l:commentstring="#%s" let b:undo_ftplugin .= ' - \ | setlocal expandtab< shiftwidth< softtabstop< tabstop< commentstring< + \ setlocal expandtab< shiftwidth< softtabstop< tabstop< commentstring< \' let &cpo = s:save_cpo diff --git a/indent/snippet.vim b/indent/snippet.vim index f6abbd0..f327d3c 100644 --- a/indent/snippet.vim +++ b/indent/snippet.vim @@ -35,6 +35,8 @@ set cpo&vim if !exists('b:undo_indent') let b:undo_indent = '' +else + let b:undo_indent = '|' endif setlocal indentexpr=SnippetsIndent() @@ -54,7 +56,7 @@ function! SnippetsIndent() "{{{ endfunction"}}} let b:undo_indent .= ' - \ | setlocal indentexpr< + \ setlocal indentexpr< \' let &cpo = s:save_cpo