File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,23 @@ if exists("loaded_matchit")
78
78
let b: match_words = s: match_words
79
79
endif
80
80
81
+ if ! exists (' b:surround_45' )
82
+ " When using surround `-` (ASCII 45) would provide `<% selection %>`
83
+ let b: surround_45 = " <% \r %>"
84
+ endif
85
+ if ! exists (' b:surround_61' )
86
+ " When using surround `=` (ASCII 61) would provide `<%= selection %>`
87
+ let b: surround_61 = " <%= \r %>"
88
+ endif
89
+ if ! exists (' b:surround_35' )
90
+ " When using surround `#` (ASCII 35) would provide `<%# selection %>`
91
+ let b: surround_35 = " <%# \r %>"
92
+ endif
93
+ if ! exists (' b:surround_5' )
94
+ " When using surround `<C-e>` (ASCII 5 `ENQ`) would provide `<% selection %>\n<% end %>`
95
+ let b: surround_5 = " <% \r %>\n <% end %>"
96
+ endif
97
+
81
98
setlocal comments = :<% #
82
99
setlocal commentstring = <%#\ %s\ %>
83
100
You can’t perform that action at this time.
0 commit comments