VIM question:Solved

Joel Hammer Joel
Mon May 17 11:54:01 PDT 2004


Finally read enuf to get the answer.

It's simple. You just need enuf cntrl-v's, how many seems to be a matter
of guessing. This works:

:iabb SF  font{Times-Roman8}
Entered with:
cntrl-v cntrl-v cntrl-v cntrl-v cntrl-v cntrl-v cntrl-v  0 font{Times-Roman8} 
Yes, I think it takes seven cntrl-v's
Then, typing SF during insert mode gives:

      font{Times-Roman8}

I don't really understand this, but, it works. 

Joel



On Tue, Sep 23, 2003 at 10:26:08PM -0400, Joel Hammer wrote:
> Dud....
> Dumb mistakes.
> First, the command should have been:
> :iabb SF 
> This still gives the error I mentioned below. I guess the reason is that
> these abbreviations are just straight key strokes. Thus, 
> key and this knocks the editor out of the insert mode. Dud...
> So, using 2 instead of 0 (type crtl-V 2) as the esc key here seems to work.
> 
> This seems to be a solution:
> :iabb SF font(Times-Roman8}
> and then run enscript with:
> enscript -e2 -ojunk.ps input.txt
> I suppose this will cause some complications down the road.
> Joel
> 
> 
> 
> On Tue, Sep 23, 2003 at 09:46:22PM -0400, Joel Hammer wrote:
> > Being offline has its benefits. I finally learned how to navigate the
> > help pages of vim and have learned a lot.
> > 
> > Once having learned vim, I'll never go back, but....
> > 
> > I'd like to get an abbreviation to change fonts easily.  However,
> > the command:
> >      :iabb SF 
> > fails with this error:
> >      {font Times-Roman8} not an editor command.
> > Any suggestions appreciated.
> > 
> > Joel
> > 
> > _______________________________________________
> > Linux-users mailing list
> > Linux-users at linux-sxs.org
> > Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users
> 
> _______________________________________________
> Linux-users mailing list
> Linux-users at linux-sxs.org
> Unsubscribe/Suspend/Etc -> http://www.linux-sxs.org/mailman/listinfo/linux-users



More information about the Linux-users mailing list