On Sunday 06 December 2009 14:07:13 sidg...@gmail.com wrote:
> Hey,
> 
> I'm trying to program vim bindings for lyx. I have a few questions -
> 
> 1) Does there already exist such a project?
> 
> If not,
> 
> 2) Any tips on how to go about it?
> 
> Thanks
> 

Hi Sid,

I've never written any key bindings, but I think the LyX docs available in the 
LyX help tree say something about it (but I could be wrong).

The real reason I'm responding to your post is just to say "You're the man!" 
For Vim users, Vim keystrokes are a reflex, riff, muscle memory, etc, and it 
would be very handy to have LyX keystrokes.

By the way, if, in your travels, you find ways to make VimOutliner and LyX 
cooperate more, that would be huge. I outline all my books in VimOutliner, and 
then run them through a script to turn them into LyX native format, so that 
the result is a LyX document whose Part, chapter, section, subsection, 
subsubsection, paragraph and subparagraph are outline levels 1, 2, 3, 4, 5, 6 
and 7 respectively, and whose body text are VimOutliner body text. By the way, 
my script reads a correspondence file that tells the correspondence between 
the outline level and the corresponding LaTeX. For instance, for Book level 2 
is chapter, but for Article level 2 is section.

Here's the problem: LyX native format changes every major version, and 
invariably the changes make it harder, not easier, to parse and create LyX 
native format. Perhaps an unchanging intermediate format could be defined, so 
that with each new LyX version, someone (and as a practical matter it would 
probably have to be me) would write that versions intermediate to LyX and LyX 
to intermediate programs. I guess I better dust off my python skills.

Bottom line: VimOutliner and LyX belong together. Even in a later version when 
the LyX crew implements my suggestions to make LyX a complete outliner, 
VimOutliner's speed make it superior for pure outlining, as opposed to 
rearrangement of an existing document.

So Sid, keep up the good work. Vim rules!

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt

Reply via email to