all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lennart Borgman <lennart.borgman.073@student.lu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to add VIM * functionality in EMACS VIPER mode?
Date: Sun, 06 Nov 2005 03:12:25 +0100	[thread overview]
Message-ID: <436D6689.1090604@student.lu.se> (raw)
In-Reply-To: <266164370511051801n8fd4980o@mail.gmail.com>

Nice. Maybe I as a die hard viper user also should say that I often use 
C-s to search too. It is very handy when you want to read information. I 
very often use C-s in Info for example.


Weihua JIANG wrote:

> Lennart,
>  
> Thank you very much! Now I have the * functionality in VIPER mode. 
> Below is my code:
>
>  (defun search-at-point ()
>     "Put symbol at current point into search string."
>     (interactive)
>  (setq viper-s-string (concat "\\<" (symbol-name (symbol-at-point)) 
> "\\>"))
>  (setq viper-s-forward t)
>  ;; TODO: Handle case where symbol-at-point returns nil.
>  (viper-search  viper-s-string viper-s-forward 1))
>
> (define-key viper-vi-global-user-map (kbd "*") 'search-at-point)
>

  reply	other threads:[~2005-11-06  2:12 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1131238350.577918.73380@f14g2000cwb.googlegroups.com>
2005-11-06  0:55 ` How to add VIM * functionality in EMACS VIPER mode? Weihua JIANG
2005-11-06  1:28   ` Lennart Borgman
2005-11-06  2:01     ` Weihua JIANG
2005-11-06  2:12       ` Lennart Borgman [this message]
2005-11-06  2:32         ` Weihua JIANG
2005-11-06  2:41           ` Lennart Borgman
2005-11-06  2:50             ` Weihua JIANG
     [not found] ` <mailman.14117.1131238523.20277.help-gnu-emacs@gnu.org>
2005-11-06  1:38   ` Bastien

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=436D6689.1090604@student.lu.se \
    --to=lennart.borgman.073@student.lu.se \
    --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.