On 12/09/12 13:41, JP Lew wrote:
> Hello:
> 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 delimiters
>
> used on delimitMate, you should use <C-]> (read |i_CTRL-]|) to
> expand them on
>
> the go.
>
>
> When I type 'sub<C-]>', it expands the abbreviation in the same way. Any
> ideas? Thanks,
> -JP
Try using :inoreabbr instead of :iabbr in order to avoid triggering any
mappings.
Best regards,
Tony.
--
In the beginning was the DEMO Project. And the Project was
without form. And darkness was upon the staff members thereof. So
they spake unto their Division Head, saying, "It is a crock of shit,
and it stinks."
And the Division Head spake unto his Department Head, saying,
"It is a crock of excrement and none may abide the odor thereof." Now,
the Department Head spake unto his Directorate Head, saying, "It is a
container of excrement, and is very strong, such that none may abide
before it." And it came to pass that the Directorate Head spake unto
the Assistant Technical Director, saying, "It is a vessel of fertilizer
and none may abide by its strength."
And the assistant Technical Director spake thus unto the
Technical Director, saying, "It containeth that which aids growth and
it is very strong." And, Lo, the Technical Director spake then unto
the Captain, saying, "The powerful new Project will help promote the
growth of the Laboratories."
And the Captain looked down upon the Project, and He saw that
it was Good!
--
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
Wednesday, September 12, 2012
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment