tpope / vim-rsi

rsi.vim: Readline style insertion
http://www.vim.org/scripts/script.php?script_id=4359
590 stars 36 forks source link

<M-d> mapping interfering with inserting a-umlaut (ä) #5

Open fintelkai opened 11 years ago

fintelkai commented 11 years ago

I would love to figure out how to disable the <M-d> mapping, so I can enter "ä" in emails to German correspondents. I tried

iunmap <M-d> 

late in my .vimrc but that doesn't do the trick.

tpope commented 11 years ago

What kind of Vim?

On Tue, Apr 16, 2013 at 12:44 PM, fintelkai notifications@github.comwrote:

I would love to figure out how to disable the mapping, so I can enter "ä" in emails to German correspondents. I tried

iunmap

late in my .vimrc but that doesn't do the trick.

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-rsi/issues/5 .

fintelkai commented 11 years ago

MacVim and mvim in iTerm.

On Tuesday, April 16, 2013, Tim Pope wrote:

What kind of Vim?

On Tue, Apr 16, 2013 at 12:44 PM, fintelkai <notifications@github.com<javascript:_e({}, 'cvml', 'notifications@github.com');>>wrote:

I would love to figure out how to disable the mapping, so I can enter "ä" in emails to German correspondents. I tried

iunmap

late in my .vimrc but that doesn't do the trick.

— Reply to this email directly or view it on GitHub< https://github.com/tpope/vim-rsi/issues/5> .

— Reply to this email directly or view it on GitHubhttps://github.com/tpope/vim-rsi/issues/5#issuecomment-16457130 .

toupeira commented 11 years ago

Same on Debian with both terminal and GVim, version 7.3.932-3.

I use a Swiss keyboard with this XKB configuration, incidentally the problem also occurs if I press the digraph compose key present on the keyboard, followed by an 'a'.

tpope commented 11 years ago

You can iunmap in after/plugin/rsi.vim. Having an option to disable the meta maps wouldn't be a terrible idea.

toupeira commented 11 years ago

Thanks, that did the trick, together with nunmap and cunmap.

ingemar commented 11 years ago

It interferes with my Swedish "ä" too. :(

toupeira commented 11 years ago

@ingemar, try putting the following into ~/.vim/after/plugin/rsi.vim:

silent! iunmap <M-d>
silent! nunmap <M-d>
silent! cunmap <M-d>
ingemar commented 11 years ago

Thanks @toupeira. (Mainly wanted to poke tpope about it.. ;) )

moll commented 10 years ago

Stumbled upon this problem too here in Estonia.

tpope commented 10 years ago

To be more explicit, I'd accept a g:rsi_no_meta patch.