Yi Mode Vim Bindings?

184 views
Skip to first unread message

Jeremy Huffman

unread,
May 17, 2013, 8:52:55 PM5/17/13
to lek...@googlegroups.com
Hi, I saw a reference that Yi mode supported Vim bindings but I haven't been able to get it to work. I'm using .12.1.3 on Linux. In Prefs I've checked the "Use Yi" box, but I don't see any difference in the editor after doing that. Is there something else also required to activate this?

Thanks,

Jeremy

Hamish Mackenzie

unread,
May 17, 2013, 9:59:19 PM5/17/13
to lek...@googlegroups.com
You have to build leksah with the -fyi option for it to work. Yi support is very basic in Leksah. It needs quite a bit of work to make it really usable. For instance Leksah's autocomplete will not work in Yi yet and the Yi minibuffers are not displayed (so : and / in VIM do not work yet).

I have recently refactored the TextEditor stuff (to use type families) and added some CodeMirror support (also incomplete though it's minibuffers do work).  CodeMirror also has VIM bindings.


There are a lot of TODO comments in the Yi.hs or CodeMirror.hs (these need to be implemented to do the same thing as GtkSourceView.hs).  That would be a great place to start if anyone has time to help out.  The Yi minibuffers issue needs to be sorted in the Yi repo.

--
You received this message because you are subscribed to the Google Groups "leksah" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leksah+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Jeremy Huffman

unread,
May 19, 2013, 1:48:39 PM5/19/13
to lek...@googlegroups.com
Hi, thanks for the response. Sorry but I am new to Haskell and Cabal, and don't know what to do about this build error I get:

$ cabal install -fyi --reinstall
Resolving dependencies...
In order, the following will be installed:
leksah-0.12.1.3 +yi (reinstall) changes: dyre-0.8.11 added, yi-0.6.6.0 added
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Configuring leksah-0.12.1.3...
Building leksah-0.12.1.3...
Preprocessing library leksah-0.12.1.3...

src/IDE/YiConfig.hs:30:8-26:
    Could not find module `Yi.UI.Pango.Control'
    Use -v to see a list of the files searched for.
cabal: Error: some packages failed to install:
leksah-0.12.1.3 failed during the building phase. The exception was:
ExitFailure 1

Reply all
Reply to author
Forward
0 new messages