Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 01 Sep 2014, 14:52
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
vi next search result command
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: 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
View user's profile Send private message 
RetroTechGuy


Joined: 15 Dec 2009
Posts: 2668
Location: USA

PostPosted: 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

_________________
Add swapfile
Back to top
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: 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
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: 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
View user's profile Send private message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: 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
View user's profile Send private message 
edwin.evans

Joined: 15 Nov 2012
Posts: 60

PostPosted: 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
View user's profile Send private message 
6502coder

Joined: 23 Mar 2009
Posts: 85
Location: Western United States

PostPosted: 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
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0800s ][ Queries: 11 (0.0257s) ][ GZIP on ]