all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: smudgef1@yahoo.com
Subject: viper question
Date: 28 Jul 2006 13:16:58 -0700	[thread overview]
Message-ID: <1154117818.299531.93760@h48g2000cwc.googlegroups.com> (raw)

Hello,

I'm trying to simulate vim's visual mode in viper. I have been somewhat
succesful using the pc-selection-mode. So far I just have

(define-key viper-vi-global-user-map (kbd "v") 'forward-char-mark)

With this setting, I can then use the viper navigation keys to select
more text (very similiar to vim). The only thing I need now is a
binding that will bind 'y' to yank the selected text. I need 'y' binded
to copy-region-as-kill-nomark (same thing alt-w is binded to), but only
when text is selected. Does anyone know how to do this?

This should work since the viper key 'p' already pastes what was copied
with alt-w.

Thanks!

             reply	other threads:[~2006-07-28 20:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-28 20:16 smudgef1 [this message]
2006-07-29 10:23 ` viper question Lennart Borgman
     [not found] ` <mailman.4629.1154168642.9609.help-gnu-emacs@gnu.org>
2006-08-06 22:08   ` austin.wood

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=1154117818.299531.93760@h48g2000cwc.googlegroups.com \
    --to=smudgef1@yahoo.com \
    /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.