You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to copy the .vimrc to ftplugin/javascript.vim and it fails to load the plugins with vim-plug. It fails when trying to call NERTreeFind from OpenNerdTree in the plugins/config.vim file. When I check the PluginStatus everything checks out as 'ok'. However, when I call NERDTreeToggle the command isn't found right after vim starts. If I call the command ': call plug#end()' NERDTree commands are there.
It would be nice for me to have this set up only for javascript and I usually use ftplugin for these language specific things.
The text was updated successfully, but these errors were encountered:
Hi, I'm sure to get exactly what you are trying to achieve but vim-plug hacks somehow the file types loading.
If you'd like to enable a plugin for a particular filetype, you can add the for parameter to the plugin definition in plugins/def.vim, for example :
ftplugin allows you to load configs based on the filetype that was detected for the file. In this case I was trying to load webvim just on javascript files. I did see that Plug allowed you to specify the filetype on which the plugin was to be loaded. I was trying to avoid all that by simply bootstrapping webvim on javascript files only. I'll dig around and see if I can't get it working and talk with some vim-plug folks to see I can't get it worked out.
I tried to copy the .vimrc to ftplugin/javascript.vim and it fails to load the plugins with vim-plug. It fails when trying to call NERTreeFind from OpenNerdTree in the plugins/config.vim file. When I check the PluginStatus everything checks out as 'ok'. However, when I call NERDTreeToggle the command isn't found right after vim starts. If I call the command ': call plug#end()' NERDTree commands are there.
It would be nice for me to have this set up only for javascript and I usually use ftplugin for these language specific things.
The text was updated successfully, but these errors were encountered: