forked from vim-scripts/word_complete.vim
-
Notifications
You must be signed in to change notification settings - Fork 0
automatically offers word completion as you type
benjifisher/word_complete.vim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=73 Each time you type an alphabetic character, the script attempts to complete the current word. The suggested completion is selected in Select mode, so you can just type another character to keep going. Other options: <Tab> to accept, <BS> to get rid of the completion, <Esc> to leave Insert mode without accepting the completion, <C-N> or <C-P> to cycle through choices, <C-X> to enter <C-X> mode. Limitations: The script works by :imap'ping each alphabetic character, and uses Insert-mode completion (:help i_ctrl-p). It is far from perfect. For example, the :imap's mean that you are constantly switching out of Insert mode, which means that undo only works a few characters at a time. This also messes up any abbreviations you may have defined. Since Select mode uses the same mappings as Visual mode, the special keys mentioned above may conflict with what you are used to in Visual mode. I have received one report that mswin.vim interferes with this script. Every second character you type is in Select mode, so with versions of vim before 6.2, completions are offered only half the time.
About
automatically offers word completion as you type
Resources
Stars
Watchers
Forks
Packages 0
No packages published