Unix Technical Forum

VI on HP

This is a discussion on VI on HP within the HP-UX Operating System forums, part of the Unix Operating Systems category; --> Hi All, I started to work at this place which uses HPUX. I am used to Solaris. When using ...


Go Back   Unix Technical Forum > Unix Operating Systems > HP-UX Operating System

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 07:08 PM
amerar@iwc.net
 
Posts: n/a
Default VI on HP


Hi All,

I started to work at this place which uses HPUX. I am used to Solaris.

When using VI under Solaris, I could copy and paste several lines of
code and such with no problems.

However, under this HPUX, whenever it comes across a paranthese or a
bracket, it starts to indent all the following lines as if it is trying
to be smart and format the code, etc. This never happened under
Solaris.

Is there a way to turn this off?

Thanks,

Arthur

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 07:08 PM
Mike Stroyan
 
Posts: n/a
Default Re: VI on HP

amerar@iwc.net wrote:
>
> When using VI under Solaris, I could copy and paste several lines of
> code and such with no problems.
>
> However, under this HPUX, whenever it comes across a paranthese or a
> bracket, it starts to indent all the following lines as if it is trying
> to be smart and format the code, etc. This never happened under
> Solaris.
>
> Is there a way to turn this off?


VI has an 'autoindent' mode that can be enabled with one of the :set
variables. You can turn that off with

:set noai

You can also add that to a $HOME/.exrc file to affect vi at startup.

--
- [HP is committed to respecting your privacy.] For more information,
visit http://welcome.hp.com/country/us/en/...e_privacy.html
- or contact me at: [mike.stroyan@hp.com or
HP Privacy Mailbox , 20555 SH 249, MS 040307 , Houston, Texas 77070]

Mike Stroyan, mike.stroyan@hp.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-16-2008, 07:08 PM
amerar@iwc.net
 
Posts: n/a
Default Re: VI on HP


Works great, thanks.......

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-16-2008, 07:08 PM
Todd Erwin AKA COWBOY
 
Posts: n/a
Default Re: VI on HP

IN vi

:set noai

This will turn autoindent off. More then likely the system default is for it to
be on. You can turn it off in your .rc file.


amerar@iwc.net wrote:
> Hi All,
>
> I started to work at this place which uses HPUX. I am used to Solaris.
>
> When using VI under Solaris, I could copy and paste several lines of
> code and such with no problems.
>
> However, under this HPUX, whenever it comes across a paranthese or a
> bracket, it starts to indent all the following lines as if it is trying
> to be smart and format the code, etc. This never happened under
> Solaris.
>
> Is there a way to turn this off?
>
> Thanks,
>
> Arthur
>


--
.____________________________.
/\__/\ | |
/ O O\_| --- Todd Erwin --- |
/ \ AKA COWBOY |
/ \ \ EC Support |
/ _ \ \_________________________!
/ |\____\ \ ||
/ | | | |\____/ ||
/ \| | | |/ | _||
/ / \ ------- |_____| ||
/ | | | __) VLSI Technology Center
| | | |_____ __) INTEL Corporation
| |_|_|_| | \___) Fort Collins, CO
/\ | !!
/ /\ | / EMAIL: twe@fc.intel.com
/ / | | | LOCATION: 6UL12
_/ / | | | PHONE:
|__/ c_c_c_C/ \C_c_c_c/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:24 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com