• You are not logged in.
  • Index
  • General
  • Has anyone ported Shai's remappings to Evil (Emacs)?

    Has anyone ported Shai's remappings to Evil (Emacs)?

    • Started by itwastrees
    • 7 Replies:
    • Reputation: 0
    • Registered: 27-Sep-2009
    • Posts: 9

    I really like Shai's Vim remappings, but they seem to interfere with the functionality of a lot of plugins. The Emacs plugin Evil seems to provide a relatively full-featured set of Vim bindings, and I'm going to start using it. Before I try to change all the bindings so they match Shai's, I thought I'd ask if anyone had already done this. If so, could you share your .el code?

    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,362

    I used to like Shai's Vim remappings a lot, but eventually came to the conclusions that a) they break stuff and b) one of the great assets of Vim is being everywhere and whenever I came to a machine with Vim but not those remappings I'd be a sad customer. It's like it's not quite Vim anymore...

    Therefore I've decided to use Vim without (significant) remapping. Also, the Extend remappings in xkb take care of navigation and more.

    Finally answering your question of sorts: Sorry, IDRKTABILTAA. :)

    Last edited by DreymaR (08-Aug-2012 08:02:50)

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0
    • Reputation: 7
    • Registered: 21-Apr-2010
    • Posts: 818

    Dot files can easily be remote hosted.  So I wouldn't be too shy about shoving all you vim goodness in some remote repo, and pulling them down when you need them, and shortly after, toss them away.

    For me,  I'm just worried that remapping would clobber other shortcuts.  It can get quite messy.

    --
    Physicians deafen our ears with the Honorificabilitudinitatibus of their heavenly Panacaea, their sovereign Guiacum.

    Offline
    • 0
    • Reputation: 0
    • Registered: 04-Apr-2013
    • Posts: 538

    To update this thread a little, there is colemak-evil (I suspect made by the OP - the dates match).  There is also my radically different fork, though I'm not sure you could call those "Shai's mapping's" anymore.

    Incidentally, Dreymar, I've just pushed/pulled your hints diagram to both.


    pinkyache said:

    For me,  I'm just worried that remapping would clobber other shortcuts.  It can get quite messy.

    Emacs has the advantage in that they don't actually use "normal mode", etc, aside from evil.  As long as you stay away from the C- and M- shortcuts... I'm not particularly good at doing that, though.

    Last edited by lalop (01-Jun-2013 23:37:53)
    Offline
    • 0
    • Reputation: 214
    • From: Viken, Norway
    • Registered: 13-Dec-2006
    • Posts: 5,362

    Oh – nice! Keep in mind that golemak is on ice and probably will stay that way. So I don't think you actually need that link to it. ;)

    Last edited by DreymaR (03-Jun-2013 09:14:21)

    *** Learn Colemak in 2–5 steps with Tarmak! ***
    *** Check out my Big Bag of Keyboard Tricks for Win/Linux/TMK... ***

    Offline
    • 0
    • Reputation: 0
    • Registered: 14-Jun-2013
    • Posts: 1

    very nice and informative posts ,i like this forum very much ....

    Offline
    • 0
    • Reputation: 0
    • Registered: 04-Apr-2013
    • Posts: 538

    To anyone who's using an evil variant (or emacs in general):

    The package keyfreq.el can help us gather some sorely needed statistics, maybe even allow us to make heatmaps of evil keys.  I first saw it mentioned on Xah Lee's command frequency study, but of course that study is more canonical emacs.

    Unfortunately, I'm not sure it distinguishes, for example, the letters typed in :somecommand or while acejumping; if I understand correctly, it records all the typing as "self-insert-command".  Might look to add this later.  It does not take into account digraphs or anything like that, only raw frequencies.  Also, the numbers seem to vary across emacs instances (for instance, this "Edit with Emacs" daemon vs a normally started up instance), so not sure what to make of that. I doubt it would significantly affect the percentage results, so I guess that's okay.

    I'll post my own results after getting some more data.  If anyone else wants to volunteer it might be an interesting comparison.



    Update:

    If any hardcore emacsers want to retain their old shortcuts while using modifierless, modal editing, there's a new project, somewhat daringly called God Mode, but which is probably better described as C- mode or Command Mode.

    It doesn't solve all the problems (most notably, "x", commonly used with modifiers but very awkward as a standalone key, probably needs remapping), but it gets a few steps closer.

    Last edited by lalop (11-Aug-2013 12:27:38)
    Offline
    • 0
    • Reputation: 0
    • Registered: 04-Apr-2013
    • Posts: 538

    Someone's made an analysis tool for vimlog, able to collect phrases as well. 

    http://www.drbunsen.org/vim-croquet/

    It looks promising, and he's managed a cool heatmap to boot.  The main limitation (including over keyfreq.el) is that this works on the key level rather than the command level, outdating the data once the layout is changed.  The telltale sign here is Esc barely being used on the heatmap, probably due to being replaced by something else.

    Offline
    • 0
      • Index
      • General
      • Has anyone ported Shai's remappings to Evil (Emacs)?