POV-Ray : Newsgroups : povray.unix : Editor : Re: Editor Server Time
1 Jul 2024 12:39:07 EDT (-0400)
  Re: Editor  
From: Daniel Hulme
Date: 1 Dec 2004 22:43:57
Message: <20041202034357.52455190@dh286.pem.cam.ac.uk>
> Perhaps a way to do it in vim?
vim has keyword completion
^n and ^p complete a token by matching against tokens in the file
after/before the one you're currently typing.
^x^v might be more useful: it completes by picking a word from a
dictionary file; the location of the dictionary is user-definable and
could be set to a file containing a list of SDL keywords.

^n/^p completion can be redefined using the 'complete' option to look in
a particular dictionary file: you could have your SDL
syntax-highlighting script modified to do just that.

Actually, it would be rather nice if it would do it automatically using
the keywords defined in the syntax file. Ah well.

see :help ins-completion for more details.

Daniel

-- 
A church is more than just timber and stone   .oO( surreal.istic.org )
And freedom is a dark road when you're walking it alone   -Paul Simon,
But the future is now, and it's time to take a stand       'A Church 
So the lost bells of freedom can ring out in my land.      is Burning'


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.