[comp.editors] a question about vi

jbush@ficc.uu.net (james bush) (03/16/89)

I seem to be having problems when I define vi macros.  I
suspect that I run out of space in some internal table of
vi.  If I define too many macros, vi seems to get *very*
confused.  Is there any solution to this problem?
Thanks in advance.

-- 
James Bush, Ferranti, Houston              The Bible - the "source code" of life
"Righteousness exalts a nation,but sin is a disgrace to any people." Prov. 14:34
Internal: jbush,5230, mail A/3204, room A/3602 External: ..!uunet!ficc!jbush
All opinions are my own, and do not represent those of my employer.

mercer@ncrcce.StPaul.NCR.COM (Dan Mercer) (03/17/89)

In article <3439@ficc.uu.net> jbush@ficc.uu.net (james bush) writes:
:I seem to be having problems when I define vi macros.  I
:suspect that I run out of space in some internal table of
:vi.  If I define too many macros, vi seems to get *very*
:confused.  Is there any solution to this problem?
:Thanks in advance.
:
:-- 
:James Bush, Ferranti, Houston              The Bible - the "source code" of life
:"Righteousness exalts a nation,but sin is a disgrace to any people." Prov. 14:34
:Internal: jbush,5230, mail A/3204, room A/3602 External: ..!uunet!ficc!jbush
:All opinions are my own, and do not represent those of my employer.

Are you editing in your HOME directory (I use my HOME directory as a home
for all my other directories,  an little else).

When I first started out in UNIX,  I had a similar problem.  Then I put
a !echo hello command in my home .exrc and discovered that it was being
read twice,  once as the HOME .exrc file,  the second time as the
current directory's .exrc file.

I just checked it out and it still happens.  Anyway,  depending on the
macros,  I seemed to blow out my macro space until I set noremap.

BTW,  has anyone ever used vi as a command shell.  Great history mecahnism,
although you have to be careful about invoking programs that write to
the screen,  or play funny games with stderr(like more).

It always bothered me that I couldn't change directories until the day
I accidentally fat fingered a

		:!cd src;ls

		into

		:cd src;ls

and found upon returning that I was now in my src directory.

Vi,  not just an editor - a shell.


-- 

Dan Mercer
Reply-To: mercer@ncrcce.StPaul.NCR.COM (Dan Mercer)