hi URI_string gui=underline match URI_string /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ hi Email_string gui=underline match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/
syn match URI_string /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ syn match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/
我测试两个加上syn后都能同时显示下划线,没加的时候就只有最新生效的才能显示出来 email地址的正则该加上- vim-cn@googlegroups.com 就只能从cn开始显示下划线,如果需要的话 --------------- hi URI_string gui=underline match URI_string /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ hi Email_string gui=underline match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/
> syn match URI_string > /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ > syn match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/
> 我测试两个加上syn后都能同时显示下划线,没加的时候就只有最新生效的才能显示出来 > email地址的正则该加上- > vim-cn@googlegroups.com 就只能从cn开始显示下划线,如果需要的话 > --------------- > hi URI_string gui=underline > match URI_string > /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ > hi Email_string gui=underline > match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/
> syn match URI_string >> /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ >> syn match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/
>> 我测试两个加上syn后都能同时显示下划线,没加的时候就只有最新生效的才能显示出来 >> email地址的正则该加上- >> vim-cn@googlegroups.com 就只能从cn开始显示下划线,如果需要的话 >> --------------- >> hi URI_string gui=underline >> match URI_string >> /\(http\|https\|ftp\|ftps\):\/\/\w\+\(\.\w\+\)\+\(\w\|\~\|\!\|@\|\#\|\$\|%\ |&\|\^\|\*\|(\|)\|\-\|_\|+\|=\||\|\\\|\[\|\]\|{\|}\|;\|:\|,\|\.\|\/\|?\)*/ >> hi Email_string gui=underline >> match Email_string /[a-zA-Z]\w*\(\.\w\+\)*@\w\+\(\.\w\+\)\+/