Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Andy Wokula
Antony Scriven schrieb: Hi all. I've often encountered the situation where a plugin maps keys that I've wistfully mapped in my vimrc. I think it would be useful for a user to be able to prevent this, say by using a notation such as :map final \x foo Then if Vim tries to map \x

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Antony Scriven
2008/5/28 Andy Wokula [EMAIL PROTECTED]: Antony Scriven schrieb: Hi all. I've often encountered the situation where a plugin maps keys that I've wistfully mapped in my vimrc. I think it would be useful for a user to be able to prevent this, say by using a notation such as

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Antony Scriven
2007/5/28 Nikolai Weibull [EMAIL PROTECTED]: On Wed, May 28, 2008 at 12:04 PM, Nikolai Weibull [EMAIL PROTECTED] wrote: On Wed, May 28, 2008 at 1:37 AM, Antony Scriven [EMAIL PROTECTED] wrote: Hi all. I've often encountered the situation where a plugin maps keys that I've

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Nikolai Weibull
On Wed, May 28, 2008 at 1:37 AM, Antony Scriven [EMAIL PROTECTED] wrote: Hi all. I've often encountered the situation where a plugin maps keys that I've wistfully mapped in my vimrc. I think it would be useful for a user to be able to prevent this, say by using a notation such as :map

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Ben Schmidt
The way it stands right now a user cannot prevent a plugin writer from overwriting their maps. Yes they can, as detailed by a previous poster, using autocommands or after scripts the user can have the last say. There is also the solution most of us use for Emacs. The user can choose not to

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Antony Scriven
2008/5/28 Tony Mechelynck [EMAIL PROTECTED]: [...] You could even use : au VimEnter * au FileType * map buffer {lhs} {rhs} Thanks. I think I'll have to resort to this, but with a longer list of autocommands: I don't appear to be garnering much support! I still think it's

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Erik Falor
On 5/28/08, Erik Falor [EMAIL PROTECTED] wrote: On 5/28/08, Meikel Brandmeyer [EMAIL PROTECTED] wrote: Hello, No worries, but I'd argue that they are not solutions since they aren't currently working for me. I don't think the user should be penalised if a plugin writer doesn't check

Re: RFE: Prevent maps from being overwritten with :map final

2008-05-28 Fir de Conversatie Tony Mechelynck
On 28/05/08 17:46, Antony Scriven wrote: 2008/5/28 Tony Mechelynck[EMAIL PROTECTED]: [...] You could even use : au VimEnter * au FileType * mapbuffer {lhs} {rhs} Thanks. I think I'll have to resort to this, but with a longer list of autocommands: I don't