On 2010-09-21, Tim Johnson wrote:
> Using vim 7.2 Huge version with GTK2 GUI on Ubuntu 10.04
>
> I'd like to make use of ~/.vim/ftplugin/php/php.vim - that is, the
> php.vim that is included in the `piv' package. There is much to
> recommend it, however, the following characters: ({["' are remapped
> in php.vim and they interfere with my own imapping.
>
> I can go into that file and remove the inoremap statements, but that
> seems kind of crude (to me). Can anyway recommend a more
> 'professional' or 'vimish' way to do so?
You could put unmap commands in ~/.vim/after/ftplugin/php.vim.
That's what I've done for other file types. For example:
if strlen(maparg("}", "i"))
iunmap }
endif
Testing for the existence of the mapping first avoids error messages
if the mapping has not already been defined.
HTH,
Gary
--
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