* vi editor
@ 2002-05-09 11:01 Atom
2002-05-09 12:42 ` Craig Hulett
2002-05-09 14:18 ` Bob Harris
0 siblings, 2 replies; 3+ messages in thread
From: Atom @ 2002-05-09 11:01 UTC (permalink / raw)
First, sorry for my poor English..
set ts=4
set cindent
How do I save vi configuration above..
Thanks in advance...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vi editor
2002-05-09 11:01 vi editor Atom
@ 2002-05-09 12:42 ` Craig Hulett
2002-05-09 14:18 ` Bob Harris
1 sibling, 0 replies; 3+ messages in thread
From: Craig Hulett @ 2002-05-09 12:42 UTC (permalink / raw)
I'm pretty sure you just need to create a file (in your home) called ".exrc"
and put the commands in there.
-craig
"Atom" <aiguru@linux.co.kr> wrote in message
news:abdjh3$kog$1@news1.kornet.net...
> First, sorry for my poor English..
>
> set ts=4
> set cindent
>
> How do I save vi configuration above..
>
> Thanks in advance...
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: vi editor
2002-05-09 11:01 vi editor Atom
2002-05-09 12:42 ` Craig Hulett
@ 2002-05-09 14:18 ` Bob Harris
1 sibling, 0 replies; 3+ messages in thread
From: Bob Harris @ 2002-05-09 14:18 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-09 14:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-09 11:01 vi editor Atom
2002-05-09 12:42 ` Craig Hulett
2002-05-09 14:18 ` Bob Harris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox