vi and ispell

Mitchell Patenaude mrp at sonic.net
Tue Apr 4 16:19:18 PDT 2000


My best guess is that something in your .bachrc is cd'ing to your $HOME.

You'd almost never notice this when you log in, but it'd bite you here.

Simple enough to test.  While in vi, type :!pwd,

   -- Mitch

On Tue, Apr 04, 2000 at 08:43:03PM +0000, E Frank Ball wrote:
> 
> Ok I have a vi question I didn't think of when we had our guest speaker on vi.
> 
> On HP-UX I have this in my ~/.exrc file:
> 
> map ^T :w^M:!ispell -x % ^M:e!^M^M
> 
> And when I'm editing a file I type a <ctrl>t and it pipes the file to ispell.
> 
> On Linux this doesn't work, unless the file is in my home directory. 
> It comes back with:
> 
> :!ispell filename
> ispell:  specified file does not exist
> 
> where filename is the name of the file I'm editing.
> 
> If I type in 
> :!ispell -x /fullpath/%
> Then it works.
> 
> How can I make vi look in my current directory instead of my home directory?
> 
>    E Frank Ball           frankb at efball.com



More information about the talk mailing list