看板FreeBSD
标 题Re: [问题] vim开启showmatch的功能
发信站HOOLAN International (Thu Apr 15 21:02:04 2004)
转信站ptt!ctu-reader!ctu-peer!news.nctu!freebsd.ntu!news.ntu!news.mcu!news.c
啧..乱七八糟 <
[email protected]> wrote:
> 各位好,我想请问一下,在vim底下
> 根据我找到的资料,
> 想让程式码的括弧在游标经过时可以自动让另一个成对的括弧有反应
> 以显示配对状况,似乎应该是要用:set showmatch的设定?
>
> 然而我打了这个设定却看不出个反应,请问是我误解了吗?
> 还是我少做了什麽呢?
'showmatch' 'sm' boolean (default off)
global
When a bracket is inserted, briefly jump to the matching one. The
jump is only done if the match can be seen on the screen.
不是游标经过时, 是在插入的时候会跳到配对的括号再跳回来. 除此以外, 按 %
也可以找到配对的括号, 不限插入的时候.