diff options
author | mattn <mattn.jp@gmail.com> | 2011-11-02 17:52:03 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2011-11-02 17:52:03 +0900 |
commit | f95231e9c33f3321583b16bbe5fd5055307ca782 (patch) | |
tree | 566f990610abccc6944ff06630d781ad7db25375 /autoload | |
parent | 2a11cebd64abfe161d6c64c256e98b3b602b9d3f (diff) | |
download | vim-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.vim | 2 |
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 |