Merge pull request #182 from alpaca-tc/changed_behavior_of_bundo_ftplugin

Changed behavior of b:undo_ftplugin
This commit is contained in:
Shougo 2013-09-24 22:58:48 -07:00
commit 4dfd5f92cc
2 changed files with 6 additions and 2 deletions

View File

@ -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

View File

@ -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