Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: Bob Harris <harris@zk3.dec.com>
Subject: Re: vi editor
Date: Thu, 09 May 2002 14:18:19 GMT	[thread overview]
Message-ID: <harris-8B8967.10130709052002@cacnews.cac.cpqcorp.net> (raw)
In-Reply-To: abdjh3$kog$1@news1.kornet.net

In article <abdjh3$kog$1@news1.kornet.net>, "Atom" <aiguru@linux.co.kr> 
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 <www.vim.org> or <vim.sourceforge.net>?

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


      parent reply	other threads:[~2002-05-09 14:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-09 11:01 vi editor Atom
2002-05-09 12:42 ` Craig Hulett
2002-05-09 14:18 ` Bob Harris [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox