Vim Tips Wiki


1,610pages on
this wiki
Revision as of 07:34, November 15, 2011 by JohnBot (Talk | contribs)

Use this page to discuss script 1879 AutoComplPop: Automatically open popup menu for completions

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


I love this script! Very well done. -- Paul/London UK

Possible Improvements

Selecting a selection from the popup menu means placing your hand on arrows which distracts your hands main position while using Vim (sdfghjkl line). Like pummode ( does, it is very rational to use casual normal mode movement keys as selection keys. But this has the disadvantage of typing <C-V> before every letter you want to use and not to move. As a hybrid solution plugin may hold a buffer (e.g. 3 for making jk to come after each other at most 3 times. For example when the words vim remembers are,

 asdkr, asdeererer, asdjke

and when you type asd, a popup menu opens. If I want to select asdeererer only I have to do is typing asdj(or jj). But if I want to write (lets say asdjkrtd) which is not in vim's memory and the first letter after asd is j or k, I should type <C-V> before j after asd. If a buffer of previously pressed keys are kept, plugin can remember to insert the movent keys (jk) as normal characters after a key (in asdjkrtd this is r) which is not directing popup selection is entered. The scenario would be like:

 press asd and a popup opens,
 press jk but not inserted yet kept in the buffer,
 press r and buffered keys jk will be inserted before r and asdjkr is printed on the screen, 
 type td as your last letters and asdjkrtd is inserted


Around Wikia's network

Random Wiki