Merge pull request #182 from alpaca-tc/changed_behavior_of_bundo_ftplugin
Changed behavior of b:undo_ftplugin
This commit is contained in:
commit
4dfd5f92cc
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user