Sunday, October 24, 2010

Re: replace selected region only

thank you very much

2010/10/24 Simon Ruderich <simon@ruderich.org>
On Sun, Oct 24, 2010 at 03:46:45PM +0900, 김태윤 wrote:
> hello
> I am gvim beginner
> today, I try to replace text only in selected area with gvim
> I alt+select the region where to be replaced. it works.

To select a region you use V or Ctrl-V. I've no idea what
alt+select does (never used GVim), sounds like you're using the
mouse. Better use V or Ctrl-V.

> but the find and replace menu seems have no selected region only option

To find/replace use :s/// and if you have a selection it will
only find/replace in this selection.

> is there any easy way to do it?
> thanks in advanced

Hope this helps,
Simon
--
+ privacy is necessary
+ using gnupg http://gnupg.org
+ public key id: 0x92FEFDB7E44C32F9

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: