|
发表于 2015-5-13 10:25:43
|
显示全部楼层
回复 icfbicfb
谢谢,记得好像可以在vimrc里面设置自定义关键字的,比如module-endmodule等,以前 ...
logue 发表于 2015-5-12 22:31
楼上说的是matchit插件:Examples: Suppose you > :let b:match_words = '<:>,<tag>:</tag>'< and hit "%" with the cursor on or before the "<" in "a <tag> is born". The pattern '<' comes first, so it is preferred over '<tag>', which also matches. If the cursor is on the "t", however, then '<tag>' is preferred, because this matches a bit of text containing the cursor. If the two groups of patterns were reversed then '<' would never be preferred. Suppose you > :let b:match_words = 'if:end if'< (Note the space!) and hit "%" with the cursor at the end of "end if". Then "if" matches, which is probably not what you want, but if the cursor starts on the "end " then "end if" is chosen. (You can avoid this problem by using a more complicated pattern.)
http://ftp.stust.edu.tw/vim/runtime/macros/matchit.txt |
|