2010-05-12 77 views

回答

8

您可以在vimrc中使用suffixes option来取消优先化或忽略扩展名为.class的文件。

这里有一个简单的例子:

" suffixes to put to the end of the list when completing file names 
set suffixes=.bak,~,.o,.h,.info,.swp,.class 
+3

我结束了使用'wildignore',但你的答案让我在那里。谢谢。 – carl 2010-05-12 02:04:25

9

使用以下,在vimrc文件:

set wildignore=*.class 

您可以逗号分隔它来添加多个图案

set wildignore=*.class,*.rbc 

the wildignore documentation了解更多详情(虽然没有太多要添加)