Welcome to the most active Linux Forum on the web.
Go Back > Forums > Other *NIX Forums > AIX
User Name
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.


Search this Thread
Old Today, 12:31 AM   #16
Senior Member
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.1, 14.1, 64-14.1, -current, FreeBSD-10
Posts: 1,852

Rep: Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626Reputation: 626

Originally Posted by maitree@123 View Post
No . I mean when I open a file in vi editor then I want to search a word in the entire file and that word should be hightlighted.
Of course you can do that in Vi(m)...

vi filename
:set hlsearch (probably on by default, but just in case)
/word-to-find [ENTER]
All occurances will be hilighted and cursor will be on the first one after initial cursor position.

To move cursor to next occurance...


...or to previous one...

Why is that hard?
Old Today, 03:03 AM   #17
Senior Member
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,771

Rep: Reputation: 494Reputation: 494Reputation: 494Reputation: 494Reputation: 494
Tested in AIX 6.1, result:
ex: 0602-093 hlsearch is not a recognized option.
Use set all to see all options.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing white spaces between words and joining the words in a given format Priyabio Linux - General 4 08-20-2009 07:42 AM
Search number of words in vi editor at a time sohail0399 Linux - Newbie 5 10-10-2008 03:02 PM
counting the words in vi editor. dina3e Linux - Software 6 07-16-2008 10:09 PM
How to highlight text in vi editor Gins Linux - General 17 07-25-2006 04:15 AM
Search and Replace: Asian Words to English Words ieeestd802 Linux - Software 0 10-27-2004 07:48 PM

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration