I want to set up an abbreviation in my .vimrc file like this:
iabbr sub the_sub_field('');
However, the delimitMate plugin I have installed automatically expands 'sub' to the following in my PHP file:
the_sub_field(''); '')
Rather than pasting the whole string at one time, it is being entered character by character, thus triggering delimitMate to add a bracket pair where I don't need one. The help file does seem to warn about this, but I still don't understand how to get it working:
NOTE 3: Abbre[v]iations set with |:iabbrev| will not be expanded by delimitersused on delimitMate, you should use <C-]> (read |i_CTRL-]|) to expand them onthe go.
When I type 'sub<C-]>', it expands the abbreviation in the same way. Any ideas? Thanks,
-JP
-- You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment