diff options
author | mattn <mattn.jp@gmail.com> | 2013-05-08 22:05:39 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2013-05-08 22:05:39 +0900 |
commit | 3412f8442a5a10bde28fb65211f32414448fb630 (patch) | |
tree | 28d262451e0bb76c0f6cca9fa5acdca76541bbda | |
parent | cb3fa42ae8bc348d2deed913d025e1cde212ba6a (diff) | |
download | vim-sonictemplate-3412f8442a5a10bde28fb65211f32414448fb630.tar.gz vim-sonictemplate-3412f8442a5a10bde28fb65211f32414448fb630.tar.bz2 vim-sonictemplate-3412f8442a5a10bde28fb65211f32414448fb630.zip |
No need to delete line
-rw-r--r-- | autoload/sonictemplate.vim | 3 |
1 files changed, 0 insertions, 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') |