Vim plugin only works when file is provided as arg to launch command

Posted by nsfyn55 on Stack Overflow See other posts from Stack Overflow or by nsfyn55
Published on 2012-06-22T03:11:51Z Indexed on 2012/06/22 3:16 UTC
Read the original article Hit count: 108

Filed under:
|
|

I am using the plugin java_getset.vim. The issue is that the plugin's commands are only available when I launch vim with the file as an argument.

user@machine~: vim myfile.java

If launch vim and use command-t or NerdTree to open the file in a buffer the plugin's commands are not accessible. All the filetype detection stuff is configured and working(I have syntax highlighting and indentation). The plugin source appears to be written to the letter according the the vim docs for a filetype plugin. Can anyone help me understand what changes a can make so that I can use this plugin in conjunction with Command-t?

© Stack Overflow or respective owner

Related posts about java

Related posts about vim