all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* viper-ESC-moves-cursor-back affected by Vimpulse
@ 2009-07-25 19:24 Elena
  2009-07-28 13:03 ` Elena
  0 siblings, 1 reply; 3+ messages in thread
From: Elena @ 2009-07-25 19:24 UTC (permalink / raw)
  To: help-gnu-emacs

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: viper-ESC-moves-cursor-back affected by Vimpulse
  2009-07-25 19:24 viper-ESC-moves-cursor-back affected by Vimpulse Elena
@ 2009-07-28 13:03 ` Elena
  2009-07-28 13:46   ` Lennart Borgman
  0 siblings, 1 reply; 3+ messages in thread
From: Elena @ 2009-07-28 13:03 UTC (permalink / raw)
  To: help-gnu-emacs

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: viper-ESC-moves-cursor-back affected by Vimpulse
  2009-07-28 13:03 ` Elena
@ 2009-07-28 13:46   ` Lennart Borgman
  0 siblings, 0 replies; 3+ messages in thread
From: Lennart Borgman @ 2009-07-28 13:46 UTC (permalink / raw)
  To: Elena; +Cc: help-gnu-emacs

On Tue, Jul 28, 2009 at 3:03 PM, Elena<egarrulo@gmail.com> wrote:

> 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.

That sounds like a possible bug in Viper. Can you try to nail it down?




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-07-28 13:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-25 19:24 viper-ESC-moves-cursor-back affected by Vimpulse Elena
2009-07-28 13:03 ` Elena
2009-07-28 13:46   ` Lennart Borgman

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.