From 3412f8442a5a10bde28fb65211f32414448fb630 Mon Sep 17 00:00:00 2001 From: mattn Date: Wed, 8 May 2013 22:05:39 +0900 Subject: No need to delete line --- autoload/sonictemplate.vim | 3 --- 1 file changed, 3 deletions(-) diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim index feeb1d2..d340e8b 100644 --- a/autoload/sonictemplate.vim +++ b/autoload/sonictemplate.vim @@ -221,9 +221,6 @@ function! sonictemplate#apply(name, mode, ...) abort let lhs = lhs[len(indent):] let c = lhs . c . rhs endif - if getline('.') =~ '^\s*$' - silent! normal dd - endif let c = indent . substitute(substitute(c, "\n", "\n".indent, 'g'), "\n".indent."\n", "\n\n", 'g') if len(indent) && (&expandtab || &tabstop != &shiftwidth || indent =~ '^ \+$') let c = substitute(c, "\t", repeat(' ', min([len(indent), &shiftwidth])), 'g') -- cgit v1.2.3-54-g00ecf