aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2011-11-02 17:52:03 +0900
committermattn <mattn.jp@gmail.com>2011-11-02 17:52:03 +0900
commitf95231e9c33f3321583b16bbe5fd5055307ca782 (patch)
tree566f990610abccc6944ff06630d781ad7db25375 /autoload
parent2a11cebd64abfe161d6c64c256e98b3b602b9d3f (diff)
downloadvim-sonictemplate-f95231e9c33f3321583b16bbe5fd5055307ca782.tar.gz
vim-sonictemplate-f95231e9c33f3321583b16bbe5fd5055307ca782.tar.bz2
vim-sonictemplate-f95231e9c33f3321583b16bbe5fd5055307ca782.zip
add some java templates.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/sonictemplate.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/sonictemplate.vim b/autoload/sonictemplate.vim
index e29f397..26c3674 100644
--- a/autoload/sonictemplate.vim
+++ b/autoload/sonictemplate.vim
@@ -88,7 +88,7 @@ function! sonictemplate#apply(name) abort
endif
silent! put! = c
endif
- if stridx(c, '{{_cursor_}}')
+ if stridx(c, '{{_cursor_}}') != -1
silent! call search('{{_cursor_}}\zs', 'w')
silent! exe "normal a".repeat("\<bs>", 12)
endif