| Author |
Message |
edwin.evans
Joined: 15 Nov 2012 Posts: 60
|
Posted: Sun 23 Dec 2012, 14:22 Post subject:
vi next search result command |
|
In vim, you can type 'n' to find the next search result but I haven't found any way to do this on vi on Puppy. Is there any way? (Or another simple text editor I can use from the command line?)
|
|
Back to top
|
|
 |
RetroTechGuy

Joined: 15 Dec 2009 Posts: 2298 Location: USA
|
Posted: Wed 26 Dec 2012, 01:17 Post subject:
Re: vi next search result command |
|
| edwin.evans wrote: | | In vim, you can type 'n' to find the next search result but I haven't found any way to do this on vi on Puppy. Is there any way? (Or another simple text editor I can use from the command line?) |
I use "mg" which has an emacs feel, without the size/bloat.
There is also "pico", which is a pretty simple editor.
This thread has emacs and mg both listed:
http://www.murga-linux.com/puppy/viewtopic.php?t=61318
_________________ Wellminded Search
Add swapfile
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Wed 26 Dec 2012, 06:13 Post subject:
Re: vi next search result command |
|
| edwin.evans wrote: | | In vim, you can type 'n' to find the next search result but I haven't found any way to do this on vi on Puppy. Is there any way? (Or another simple text editor I can use from the command line?) |
Instead of "type 'n'" there is another variant: "press 'n'"
In QUIRKY LINUX 1.40:
1st step: /pattern
2nd step: n
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
edwin.evans
Joined: 15 Nov 2012 Posts: 60
|
Posted: Wed 26 Dec 2012, 16:21 Post subject:
Re: vi next search result command |
|
| postfs1 wrote: | | edwin.evans wrote: | | In vim, you can type 'n' to find the next search result but I haven't found any way to do this on vi on Puppy. Is there any way? (Or another simple text editor I can use from the command line?) |
Instead of "type 'n'" there is another variant: "press 'n'"
In QUIRKY LINUX 1.40:
1st step: /pattern
2nd step: n |
That is what I was doing. The issue may be that vi is actually an alias on Puppy to 'e3vi' (a lighter weight version).
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Wed 26 Dec 2012, 21:32 Post subject:
Re: vi next search result command |
|
| edwin.evans wrote: | | That is what I was doing. The issue may be that vi is actually an alias on Puppy to 'e3vi' (a lighter weight version). |
QUIRKY LINUX 1.40:
/etc/profile: #v4.00 run e3vi whenever vi excuted... 100530 no, busybox vi now used...
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
edwin.evans
Joined: 15 Nov 2012 Posts: 60
|
Posted: Wed 26 Dec 2012, 21:59 Post subject:
Re: vi next search result command |
|
| postfs1 wrote: | | edwin.evans wrote: | | That is what I was doing. The issue may be that vi is actually an alias on Puppy to 'e3vi' (a lighter weight version). |
QUIRKY LINUX 1.40:
/etc/profile: #v4.00 run e3vi whenever vi excuted... 100530 no, busybox vi now used... |
Hm? My Puppy (5.0) is using e3vi. Are you saying to use something else for editor? NOTE: I can't change from 5.0.
|
|
Back to top
|
|
 |
6502coder
Joined: 23 Mar 2009 Posts: 29
|
Posted: Mon 11 Feb 2013, 13:49 Post subject:
Re: vi next search result command |
|
| edwin.evans wrote: | | In vim, you can type 'n' to find the next search result but I haven't found any way to do this on vi on Puppy. Is there any way? (Or another simple text editor I can use from the command line?) |
e3vi does not suppport either the "n" or "N" command. However, there is an alternative.
After starting a search with "/<pattern>" you can find the next search result by entering "/" with no search pattern; i.e. just "/" and hit RETURN. This will repeat the search.
Similarly, entering "?" will repeat the search in the reverse direction.
Once a search pattern has been established with either "/<pattern>" or "?<pattern>" you can move around with "/" and "?", mixing and matching as you like.
|
|
Back to top
|
|
 |
|