|
From: | Lennart Borgman |
Subject: | Re: How to avoid insert anything without switching to read only |
Date: | Mon, 11 Jul 2005 15:52:19 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (Windows/20050317) |
Stefan Monnier wrote:
In viper-mode nothing should be inserted if you are in vi mode. It works for all keys that are assigned commands (like i, o, a etc), but it does not work for national characters. Those are not assigned to anything in viper. I suggested to the maintainer that this should be fixed by advising self-insert'. Those national characters are bound to self-insert according to help (C-h c). Michael was very helpful and added this.(define-key the-viper-map-for-vi-mode [remap self-insert-command] 'undefined)
Thanks! I hope it is solved. The actual code is (define-key viper-vi-basic-map [remap self-insert-command] 'undefined) Wonder where and when it should be called? Can you try to add that Michael?
[Prev in Thread] | Current Thread | [Next in Thread] |