[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] [OT] Have you also got hooked by Vim?
From: |
Michael Brand |
Subject: |
Re: [Orgmode] [OT] Have you also got hooked by Vim? |
Date: |
Thu, 13 Jan 2011 15:42:44 +0100 |
Hi Andrew
On Thu, Jan 13, 2011 at 13:27, Andrew J. Korty <address@hidden> wrote:
> I've tried several times to use Viper, but I always give up. The usual
> showstopper is read-only Emacs modes with single-character key bindings,
> like MH-E. The d key deletes a message in an MH folder, but in vi, d
> deletes text to a target. So the obvious thing to do is turn Viper mode off
> in folder buffers. But I'd like to use the vi keys for motion (h, j, k, l)
> -- I can't get used to using them in some buffers and not others. So unless
> I'm unaware of some trick, I have to build my own keymap almost for each of
> these modes.
I hope I understand you right and this helps: I use C-z for this with
viper level 3 to have C-z bound to Emacs. When I open e. g. dired then
the viper state in this buffer that is shown in the mode line is <E>
meaning Emacs. In this mode the Emacs keys are active like e. g. `f'
to open the file in a new buffer or p/n to go up/down. Back in dired
and after C-z the viper state changes to <V> meaning viper. In this
mode the vi keys are active like e. g. `f' to find a certain character
or k/j to go up/down. C-z at any time toggles again to <E>.
Michael