Running nroff from vi and getting errors - please help

Running nroff from vi and getting errors - please help

Post by Ilya Beloozer » Fri, 01 Dec 1995 04:00:00



I used to run nroff from vi to format the buffer like this:

:%!nroff

and it worked but now this is what happens, vi somehow quits and a new
shell starts (zsh). I tried typing "fg" to return to vi, but it sayis no
such process. Then I just type "exit" and I am back in vi, and the buffer
is non-formatted.

Why is this happening and what can I do about it? I set my $HISTORY variable
to 1000 in my .cshrc and .zshrc files, could that be the source of the
problem? I am running zsh on SunOS 5.4 sun4m sparc.

I also tried doing

:r !command_name

and that caused the same problem, i.e., vi quiting and new shell starts
which I have kill.

Please reply via email. Thank you for your time.

=============================================================================
Ilya Beloozerov


Public PGP key is available by finger or at http://www.cs.runet.edu/~ibelooze
  This message is sponsored by the First Amendment to the U.S. Constitution.
=============================================================================

 
 
 

Running nroff from vi and getting errors - please help

Post by Ily » Sat, 02 Dec 1995 04:00:00


: I used to run nroff from vi to format the buffer like this:
:
: :%!nroff
:
: and it worked but now this is what happens, vi somehow quits and a new
: shell starts (zsh). I tried typing "fg" to return to vi, but it sayis no
: such process. Then I just type "exit" and I am back in vi, and the buffer
: is non-formatted.
:
: Why is this happening and what can I do about it? I set my $HISTORY variable
: to 1000 in my .cshrc and .zshrc files, could that be the source of the
: problem? I am running zsh on SunOS 5.4 sun4m sparc.
:
    I figured it out. I put exec zsh in my .chsrc file and that caused that
    vi problem. Anybody know why?

=============================================================================
 Ilya Beloozerov


 Public PGP key is available by finger or at http://www.cs.runet.edu/~ibelooze
   This message is sponsored by the First Amendment to the U.S. Constitution.
=============================================================================