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, 09: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, 09:42 AM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,369
Blog Entries: 1

Rep: Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088
Which version of VI, which version of AIX?
 
Old 06-12-2014, 09: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, 10:23 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,877

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
Are you referring to syntax highlighting?
 
Old 06-13-2014, 01: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, 02:07 AM   #6
pan64
Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 5,003

Rep: Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320Reputation: 1320
probably this link will help you: http://vim.wikia.com/wiki/Highlight_...attern_matches
 
Old 06-13-2014, 05: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, 06:47 AM   #8
dunne
LQ Newbie
 
Registered: May 2014
Distribution: slackware
Posts: 8

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

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

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, 12:33 PM   #11
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,877

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
If you use 'vim', you can pretend it is an improved 'vi'. That's why it is called 'vi improved'
 
Old 09-16-2014, 04:53 AM   #12
tango21
LQ Newbie
 
Registered: Sep 2014
Posts: 5

Rep: Reputation: Disabled
i think you can not do this in VI AIX

---------- Post added 09-16-14 at 03:54 AM ----------

I think you can not do this in VI AIX
 
Old 09-16-2014, 03:20 PM   #13
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 1,877

Rep: Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517Reputation: 517
It is not inherently impossible to install new programs on an AIX... I did that sometimes and survived.
 
Old 09-16-2014, 03:22 PM   #14
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 3,369
Blog Entries: 1

Rep: Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088Reputation: 1088
Well,. in vi/vim,. to highlight you would just use

Code:
:syntax on
Or am I misunderstanding?
 
Old 09-17-2014, 01:18 AM   #15
cliffordw
Member
 
Registered: Jan 2012
Location: South Africa
Posts: 281

Rep: Reputation: 118Reputation: 118
Quote:
Originally Posted by dunne View Post

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"?
I'd say it is if the "other editor" does everything vi does in exactly the same way (unlike emacs), plus provide the requested feature :-)

Vim for AIX can be obtained from IBM or perzl.org.

Last edited by cliffordw; 09-17-2014 at 01:20 AM. Reason: typo
 
  


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 08:42 AM
Search number of words in vi editor at a time sohail0399 Linux - Newbie 5 10-10-2008 04:02 PM
counting the words in vi editor. dina3e Linux - Software 6 07-16-2008 11:09 PM
How to highlight text in vi editor Gins Linux - General 17 07-25-2006 05:15 AM
Search and Replace: Asian Words to English Words ieeestd802 Linux - Software 0 10-27-2004 08:48 PM


All times are GMT -5. The time now is 06:47 PM.

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