How to enable YCM for MacVim only (while keep it disabled for terminal Vim) -


i've been using vim while still confused configuration. want config vim in such way ycm (youcompleteme, auto-complete plugin) only gets loaded if running in gui mode (e.g. macvim), while if terminal vim (maybe misnomer, mean text-based vim launched command line) runs, ycm won't loaded.

this question can generalized "how selectively load plugins depending on running mode?". though must has been considered elsewhere, google gets me little useful information.

if has("gui_running")     ... enable gui stuff here else     ... enable terminal stuff here endif 

(see h: feature-list)


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -