Changed behavior of b:undo_ftplugin

This commit is contained in:
alpaca_taichou 2013-09-25 14:36:37 +09:00
parent e1d053c3b7
commit f3ce8319c4
2 changed files with 6 additions and 2 deletions

View File

@ -29,6 +29,8 @@ set cpo&vim
if !exists('b:undo_ftplugin') if !exists('b:undo_ftplugin')
let b:undo_ftplugin = '' let b:undo_ftplugin = ''
else
let b:undo_ftplugin = '|'
endif endif
setlocal expandtab setlocal expandtab
@ -37,7 +39,7 @@ let &l:softtabstop=&tabstop
let &l:commentstring="#%s" let &l:commentstring="#%s"
let b:undo_ftplugin .= ' let b:undo_ftplugin .= '
\ | setlocal expandtab< shiftwidth< softtabstop< tabstop< commentstring< \ setlocal expandtab< shiftwidth< softtabstop< tabstop< commentstring<
\' \'
let &cpo = s:save_cpo let &cpo = s:save_cpo

View File

@ -35,6 +35,8 @@ set cpo&vim
if !exists('b:undo_indent') if !exists('b:undo_indent')
let b:undo_indent = '' let b:undo_indent = ''
else
let b:undo_indent = '|'
endif endif
setlocal indentexpr=SnippetsIndent() setlocal indentexpr=SnippetsIndent()
@ -54,7 +56,7 @@ function! SnippetsIndent() "{{{
endfunction"}}} endfunction"}}}
let b:undo_indent .= ' let b:undo_indent .= '
\ | setlocal indentexpr< \ setlocal indentexpr<
\' \'
let &cpo = s:save_cpo let &cpo = s:save_cpo