LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   How to highlight words in vi editor in AIX (https://www.linuxquestions.org/questions/aix-43/how-to-highlight-words-in-vi-editor-in-aix-4175507846/)

maitree@123 06-12-2014 08:41 AM

How to highlight words in vi editor in AIX
 
How to highlight words in vi editor in AIX.

szboardstretcher 06-12-2014 08:42 AM

Which version of VI, which version of AIX?

maitree@123 06-12-2014 08:45 AM

AIX 7.1 , version for vi editor not known.

NevemTeve 06-12-2014 09:23 AM

Are you referring to syntax highlighting?

maitree@123 06-13-2014 12:27 AM

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.

pan64 06-13-2014 01:07 AM

probably this link will help you: http://vim.wikia.com/wiki/Highlight_...attern_matches

maitree@123 06-13-2014 04:47 AM

Hi ,

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

Please help

dunne 06-13-2014 05:47 AM

You can't do this in vi.

NevemTeve 06-17-2014 11:55 PM

There are some programs that replace/extend 'vi'... one of them is 'vim'
http://www.vim.org/download.php#unix

dunne 06-18-2014 04:41 AM

Quote:

Originally Posted by NevemTeve (Post 5189662)
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"?

NevemTeve 06-18-2014 11:33 AM

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

tango21 09-16-2014 03:53 AM

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

NevemTeve 09-16-2014 02:20 PM

It is not inherently impossible to install new programs on an AIX... I did that sometimes and survived.

szboardstretcher 09-16-2014 02:22 PM

Well,. in vi/vim,. to highlight you would just use

Code:

:syntax on
Or am I misunderstanding?

cliffordw 09-17-2014 12:18 AM

Quote:

Originally Posted by dunne (Post 5189761)

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.


All times are GMT -5. The time now is 09:51 AM.