Re: How to only operate on selected text
Cream is a free, easy-to-use configuration of the Vim text editor
Brought to you by:
digitect
From: Steve H. <dig...@mi...> - 2005-12-02 15:34:15
|
From: BG - Ben Armstrong, Dec 2, 2005 8:09 AM > On Thu, 2005-12-01 at 15:48 -0500, Steve Hall wrote: > > > Thirdly, in your function you can re-select the area the user had > > selected with: > > > > normal gv > > Yes, I noticed that in several places. Why would the area need to > be reselected? When entering a function (normal mode) the visual selection is always dropped. Mode can be changed from *within* a function, but it must be called from the command line and that process means a function always begins in normal mode. So re-selection simply restores the pre-function state. -- Steve Hall [ digitect mindspring com ] :: Cream... something good to put in your Vim! :: http://cream.sourceforge.net |