From: Elena <egarrulo@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: viper-ESC-moves-cursor-back affected by Vimpulse
Date: Tue, 28 Jul 2009 06:03:41 -0700 (PDT) [thread overview]
Message-ID: <cb60f2ac-1ebd-4d8c-8306-7ef61d4f7c4f@e11g2000yqo.googlegroups.com> (raw)
In-Reply-To: 5e709a8f-81db-45e9-8300-abcc1669977c@v20g2000yqm.googlegroups.com
On 25 Lug, 19:24, Elena <egarr...@gmail.com> wrote:
> Hello,
>
> I'd like the cursor not moving back whenever I hit ESC to enter
> command mode in Viper. That should be accomplished by setting viper-
> ESC-moves-cursor-back to nil. However, in "emacs -q" such setting
> works, whilst in "emacs -q" plus loading Vimpulse it doesn't.
>
> Here is how I load Viper+Vimpulse:
>
> (setq viper-mode t)
> (setq viper-ex-style-editing nil)
> (require 'viper)
> (setq vimpulse-experimental t)
> (require 'vimpulse "vimpulse-0.3.0.el")
> (setq woman-use-own-frame nil)
> (setq woman-use-topic-at-point t)
>
> Software:
> - GNU Emacs 23.1.50.1
> - Vimpulse 0.30.0
> - Ubuntu Linux 9.04
>
> Thanks
Well, it turned out it was the function "viper-exit-insert-state"
defined by Vimpulse. I had to comment out the final section, like
this:
;; (if (and (/= (char-before (point)) ?\r)
;; (/= (char-before (point)) ?\n))
;; (backward-char 1)) ; <---------- a[ESC] leaves the cursor
; where it was before in VIM, without
; backward-char it advances 1 character.
Furthermore, I had to put:
(setq viper-ESC-moves-cursor-back nil)
before:
(require 'viper) ; load Viper
because nil-ing it by Customize didn't last, even when saved for
future sessions.
Cheers.
next prev parent reply other threads:[~2009-07-28 13:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-25 19:24 viper-ESC-moves-cursor-back affected by Vimpulse Elena
2009-07-28 13:03 ` Elena [this message]
2009-07-28 13:46 ` Lennart Borgman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cb60f2ac-1ebd-4d8c-8306-7ef61d4f7c4f@e11g2000yqo.googlegroups.com \
--to=egarrulo@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.