From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,4872019e357d5aaf X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2002-05-09 07:13:08 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!paloalto-snf1.gtei.net!news.gtei.net!news.compaq.com!cacnews.cac.cpqcorp.net!53ab2750!not-for-mail From: Bob Harris Newsgroups: comp.unix.tru64 Subject: Re: vi editor References: Posted-And-Mailed: yes User-Agent: MT-NewsWatcher/3.1 (PPC) Message-ID: Date: Thu, 09 May 2002 14:18:19 GMT NNTP-Posting-Host: 16.140.32.194 X-Complaints-To: abuse@Compaq.com X-Trace: cacnews.cac.cpqcorp.net 1020953899 16.140.32.194 (Thu, 09 May 2002 07:18:19 PDT) NNTP-Posting-Date: Thu, 09 May 2002 07:18:19 PDT Organization: Hewlett-Packard Co. Xref: archiver1.google.com comp.unix.tru64:7551 In article , "Atom" wrote: X First, sorry for my poor English.. X X set ts=4 X set cindent X X How do I save vi configuration above.. As another reply has already stated, you create a file $HOME/.exrc and for security reasons you should own it, and it should only allow you to write it, and hopefully you $HOME directory only allows you to create files in it. You can also put a limited number of vi settings in the EXINIT environment variable: setenv EXINIT "set ts=4 cindent" however, if you have an EXINIT, then $HOME/.exrc is not read, unless you also include a source $HOME/.exrc in your EXINIT environment variable: setenv EXINIT "source $HOME/.exrc | set ts=4 cindent" However, there is _NO_ cindent option in the Tru64 UNIX version of vi, so this has me wondering if perhaps you are running a vi emulation such as the execllent Vim or ? If you are running Vim, then you would put your Vim initialization settings in a $HOME/.vimrc file, or use VIMINIT environment variable. And if you are using Vim I can recomment the book: Vi IMproved - Vim by Steve Oualline New Riders Publishing ISBN: 0735710015 Good luck. Bob Harris