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 Fri 21 Nov 2014, 12:44
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 Posts_count  
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: 105
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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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