Re: stay where you after a global search
- Thus wrote Eric Smith (eric@...) on :
> most times when I do a global search i want the cursor to retain itsI think you need to end the pattern with a / (since you started with a
> current position, so I tried the following to return to the last
> :g/pattern\| `'
> and it does not do what is required.
Furthermore, you cannot use "`" to position by column as an ex
command, so you probably need
Not though, that
do pretty much the same, except that :il does not move the cursor.
There are differences though, so try it out for size.
"Before you criticize someone, walk
Preben "Peppe" Guldberg __/-\__ a mile in his shoes. That way, if
c928400@... (o o) he gets angry, he'll be a mile away
----------------------oOOo (_) oOOo-- - and barefoot." --Sarah Jackson