Operating System - HP-UX
1833780 Members
3019 Online
110063 Solutions
New Discussion

Re: case insesitive search in vi editor

 
SOLVED
Go to solution
Shivkumar
Super Advisor

case insesitive search in vi editor

Is it possible to search case insensitive patterns in vi editor ?

Thanks,
Shiv
5 REPLIES 5
Pete Randall
Outstanding Contributor
Solution

Re: case insesitive search in vi editor

Use ":set ic" to ignore case when searching.


Pete

Pete
David DiBiase
Frequent Advisor

Re: case insesitive search in vi editor

to set it back use
:se noic
Arunvijai_4
Honored Contributor

Re: case insesitive search in vi editor

:set ic in your VI editor will do the trick. To set it back, :set noic

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Ranjith_5
Honored Contributor

Re: case insesitive search in vi editor

Hi Shiva,

The settigs are "set ic" and "set noic".

a complete list of other settings for your VI session is available in the following documents.

http://www.context-switch.com/reference/vi/settings.html

http://wks.uts.ohio-state.edu/unix_course/intro-132.html


You can add all this settings to a file called .exrc in your home directory sothat it will be automatically initialized by default when you start any vi session.

http://www.context-switch.com/reference/vi/exrc.html

Regards,
Syam
Muthukumar_5
Honored Contributor

Re: case insesitive search in vi editor

esc: set ic or noic --> ignore case / no ignore case.

shiv,

I knew that you are most active forum posters. Plz look at your profile that,

I have assigned points to 1328 of 1541 responses to my questions.

change it. ;)

hth.
Easy to suggest when don't know about the problem!