aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--autoload/sonictemplate.vim3
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')