2017-07-02 123 views
2

我希望能够使用@符号和gf搜索具有相同模式的文件,例如foo @ bar。使用@符号的文件名和标识符

set [email protected] 

(或改变从[email protected],48-57,_,192-255,.iskeyword=48-57,_,192-255,.设置允许我使用*搜索foo的@酒吧实例,但如果我这样做set [email protected],我仍然无法gf它(假设foo的@酒吧在路径的文件)。

我如何[email protected] GF-能?

+1

'设置isfname - = @'去除'isf'组'@'。你不想那样 – dlmeetei

回答

3

如果你有一个名为[email protected]文件,要编辑它的路径上打gf,您可以添加@性格像这样的'isfname'选项:

set [email protected]@ 

注意,对于'isfname''iskeyword'选项,@不立为@字符,它代表所有字符,其中isalpha()返回true。

:h 'isf有关章节:

If the character is '@', all characters where isalpha() returns TRUE 
are included. Normally these are the characters a to z and A to Z, 
plus accented characters. To include '@' itself use "@[email protected]".