Skip to content

Commit f53a0d3

Browse files
committed
Enable to work eruby snippet when the cursor is immediately after the tag
When the cursor is immediately after the tag, neocomplete doesn't suggest snippet of eruby. Procedure for reproducing ------------------------- Use min.vim as vimrc, and edit test.erb https://gist.github.com/pocke/15af0c621dd9ffd1c8a3 ### Start vim ```sh $ vim -u min.vim -N test.erb ``` ### Input key Input `llllliru`. Before patch, neocomplete doesn't suggest `ruby_code`, `ruby_print`, etc. After patch, neocomplete suggests those.
1 parent f445b40 commit f53a0d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

neosnippets/eruby.snip

+5
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
snippet ruby_print
22
abbr <%= %>
3+
options word
34
<%= ${1:TARGET} %>${2}
45

56
snippet ruby_code
67
abbr <% %>
8+
options word
79
<% ${1:TARGET} %>${2}
810

911
snippet ruby_print_nonl
1012
abbr <%= -%>
13+
options word
1114
<%= ${1:TARGET} -%>${2}
1215

1316
snippet ruby_code_nonl
1417
abbr <% -%>
18+
options word
1519
<% ${1:TARGET} -%>${2}
1620

1721
snippet comment
1822
abbr <%# %>
23+
options word
1924
<%# ${1:TARGET} %>${2}
2025

0 commit comments

Comments
 (0)