sponsor Vim development Vim logo Vim Book Ad

StringComplete : Insert-completion for quoted strings

 script karma  Rating 20/20, Downloaded by 1071  Comments, bugs, improvements  Vim wiki

created by
Peter Hodge
script type
This script allows you to auto-complete quoted strings ("..." and '...') in the same way that you can complete keywords or filenames.

If you have any trouble installing or using, email me toomuchphp-vim at yahoo.com.
install details
Put StringComplete.vim into ~/.vim/autoload/ or c:\Program Files\vim\vimfiles\autoload\

To map a keystroke such as CTRL-J to get the list of strings, add the following command to
your .vimrc:

  inoremap <C-J> <C-O>:set completefunc=StringComplete#GetList<CR><C-X><C-U>

After pressing CTRL-J in insert mode, the first matching string will be inserted. Then, use
CTRL-N and CTRL-P to cycle through the completion list.

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
StringComplete.vim 1.0 2008-05-12 7.0 Peter Hodge Initial upload
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
Vim at Github