diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-07-04 18:00:42 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2016-07-04 18:01:54 +0900 |
commit | f8a61b7a7afb10d904e0778140659d47b511b84e (patch) | |
tree | 047eb10016db5eb7bbee5e9b34e65864ed2a579a /autoload | |
parent | fc8c07cbd0f029ac2b147286ad630573b67a0496 (diff) | |
download | vim-sonictemplate-f8a61b7a7afb10d904e0778140659d47b511b84e.tar.gz vim-sonictemplate-f8a61b7a7afb10d904e0778140659d47b511b84e.tar.bz2 vim-sonictemplate-f8a61b7a7afb10d904e0778140659d47b511b84e.zip |
save/restore indentexpr
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/sonictemplate.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index c543b20..16076cb 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -353,7 +353,10 @@ function! sonictemplate#postfix() silent! put! =c else call setline('.', line) + let oldindentexpr = &indentexpr + let &indentexpr = '' silent! exe "normal! a\<c-r>=c\<cr>" + let &indentexpr = oldindentexpr endif if stridx(c, '{{_cursor_}}') != -1 silent! call search('{{_cursor_}}\zs', 'w') |