python-rope / ropevim

vim mode that uses rope library to provide features like python refactorings and code-assists
GNU General Public License v2.0
245 stars 34 forks source link

Set auto-commands for closing preview mode upon completion. #28

Closed mcepl closed 9 years ago

mcepl commented 10 years ago

Originally from SuperTab https://github.com/ervandew/supertab/blob/master/plugin/supertab.vim#L863

Fixes #7

mcepl commented 9 years ago

Comment from @aligrudi

[…] it seems to me (I may be wrong) that it is addressing an issue related to omni complete and not ropevim per se. Therefore I suggest instead to mention the problem and include the necessary Vim code to address it in ropevim.txt or README.rst.

He is very much right, this should be either special vim plugin or just something added to vimrope somewhere on side to be manually switched on by the user.

mcepl commented 9 years ago

Besides for anybody affected by this see, this Stackoverflow thread, which leads to

autocmd CompleteDone * pclose

for vim >= 7.4.