From 484ee46b3689b4fd73fdc3afbb162bc0f48c7809 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Mon, 4 Jul 2016 18:01:37 +0900 Subject: ditto --- autoload/sonictemplate.vim | 3 +++ 1 file changed, 3 insertions(+) (limited to 'autoload/sonictemplate.vim') diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index 16076cb..cbadd45 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -279,7 +279,10 @@ function! sonictemplate#apply(name, mode, ...) abort if stridx(c, '{{_inline_}}') != -1 let c = substitute(c, '{{_inline_}}', '', 'g') let c = join(split(c, "\n"), "") + let oldindentexpr = &indentexpr + let &indentexpr = '' silent! exe "normal! a\=c\" + let &indentexpr = oldindentexpr return else let line = getline('.') -- cgit v1.2.3-54-g00ecf