When I use :e
in vim, it will tab-complete .class
files before the .java
files. As I never want to edit .class
files, how do I prevent vim from showing .class
files in the tab-completion?
views:
59answers:
1
+5
A:
You can use the suffixes option in your vimrc to de-prioritize or ignore files with .class extensions.
Here's a simple example:
" suffixes to put to the end of the list when completing file names
set suffixes=.bak,~,.o,.h,.info,.swp,.class
Ben Hoffstein
2010-05-12 02:02:13
I ended up using `wildignore`, but your answer led me there. Thanks.
carl
2010-05-12 02:04:25