Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning keep popping when running conque in VIM

Tags:

vim

plugins

When running conque in VIM, the warning message prompts out every time:

Warning: 
Global CursorHoldI and CursorMovedI autocommands may cause ConqueTerm to run slowly

I found a method to remove the warning is to comment out the warning-function in the conque_term.vim, but I don't think it's a decent and safe way to solve the problem.

I'm new with VIM, so I found no way to identify the source of problem by myself. Could anyone help? Thanks a lot!

like image 867
xwb1989 Avatar asked Feb 21 '13 07:02

xwb1989


2 Answers

One integration point into Vim is through events, which can trigger automatic commands; the Conque plugin itself uses these to implement its functionality. Events like CursorMovedI are fired whenever you type something or move the cursor in insert mode; this can have an impact on performance, and that's what the warning is about.

You can list all such automatic commands via:

:verbose autocmd CursorHoldI,CursorMovedI

As long as Conque works well for you, it's fine to ignore (and suppress) the warning. But if you indeed run into problems, you'd need to check the other autocmd sources and maybe disable one or the other plugin (at least for the Conque buffer). (See :help autocmd-remove for how to do this.)

like image 91
Ingo Karkat Avatar answered Sep 22 '22 14:09

Ingo Karkat


Off topic, but using Ctrl+Z to drop back to shell and fg to return to vim seems to work way better than Conque. That is if you're using vim from the terminal, which you should.

Some inspiration: http://statico.github.com/vim.html

like image 2
Spajus Avatar answered Sep 22 '22 14:09

Spajus