how to load a plugin in gvim only

123 views
Skip to first unread message

redgibson

unread,
Jul 20, 2012, 11:37:25 AM7/20/12
to janus-...@googlegroups.com
I was wondering how I can load a plugin in gvim only? I disabled it in my .vimrc.before because  my vim doesn't support python so i don't want to load php-xdebug-vim in that state and have to see the error messages everytime, however gvim is processing this file as well so it disables it there. Theres no janus#enable_plugin directive I can use that I saw. Any help appreciated. Thanks, take care-

Tomas Henriquez

unread,
Jul 20, 2012, 11:42:17 AM7/20/12
to janus-...@googlegroups.com
use the .gvimrc.after or .gvimrc.before

that should work

On Fri, Jul 20, 2012 at 11:07 AM, redgibson <redg...@gmail.com> wrote:
I was wondering how I can load a plugin in gvim only? I disabled it in my .vimrc.before because  my vim doesn't support python so i don't want to load php-xdebug-vim in that state and have to see the error messages everytime, however gvim is processing this file as well so it disables it there. Theres no janus#enable_plugin directive I can use that I saw. Any help appreciated. Thanks, take care-

--
You received this message because you are subscribed to the Google Groups "Janus - Vimius" group.
To view this discussion on the web visit https://groups.google.com/d/msg/janus-vimius/-/K1yBkOzVGfQJ.
To post to this group, send email to janus-...@googlegroups.com.
To unsubscribe from this group, send email to janus-vimius...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/janus-vimius?hl=en.



--
Tomás Henríquez


Message has been deleted

Wael M. Nasreddine

unread,
Jul 20, 2012, 7:05:48 PM7/20/12
to janus-...@googlegroups.com
You can put the disable_plugin inside an if block.

if !has("gui_running")
  ...
endif

-- 
Wael Nasreddine: Design & Coding at TechnoGate
contact | wael.na...@gmail.com - +33.6.51.24.04.34 | skype - eMxyzptlk | Github - eMxyzptlk

Reply all
Reply to author
Forward
0 new messages