LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices

Reply
 
Search this Thread
Old 06-12-2014, 08:41 AM   #1
maitree@123
LQ Newbie
 
Registered: Sep 2013
Posts: 7

Rep: Reputation: Disabled
How to highlight words in vi editor in AIX


How to highlight words in vi editor in AIX.
 
Old 06-12-2014, 08:42 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,065
Blog Entries: 1

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
Which version of VI, which version of AIX?
 
Old 06-12-2014, 08:45 AM   #3
maitree@123
LQ Newbie
 
Registered: Sep 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
AIX 7.1 , version for vi editor not known.
 
Old 06-12-2014, 09:23 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,676

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
Are you referring to syntax highlighting?
 
Old 06-13-2014, 12:27 AM   #5
maitree@123
LQ Newbie
 
Registered: Sep 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
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.
 
Old 06-13-2014, 01:07 AM   #6
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,604

Rep: Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242
probably this link will help you: http://vim.wikia.com/wiki/Highlight_...attern_matches
 
Old 06-13-2014, 04:47 AM   #7
maitree@123
LQ Newbie
 
Registered: Sep 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Hi ,

The link which you provided doesn't help . ":set hlsearch" doesnot help.

Please help
 
Old 06-13-2014, 05:47 AM   #8
dunne
LQ Newbie
 
Registered: May 2014
Distribution: slackware
Posts: 6

Rep: Reputation: 3
You can't do this in vi.
 
Old 06-17-2014, 11:55 PM   #9
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,676

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
There are some programs that replace/extend 'vi'... one of them is 'vim'
http://www.vim.org/download.php#unix
 
Old 06-18-2014, 04:41 AM   #10
dunne
LQ Newbie
 
Registered: May 2014
Distribution: slackware
Posts: 6

Rep: Reputation: 3
Quote:
Originally Posted by NevemTeve View Post
There are some programs that replace/extend 'vi'...

Indeed there are, and vim is certainly one. Emacs is another good one.
But is "use another editor" really a helpful reply to "How to highlight
words in vi editor in AIX"?
 
Old 06-18-2014, 11:33 AM   #11
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,676

Rep: Reputation: 487Reputation: 487Reputation: 487Reputation: 487Reputation: 487
If you use 'vim', you can pretend it is an improved 'vi'. That's why it is called 'vi improved'
 
  


Reply

Tags
highlight


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 01:33 AM.

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