Running is therapy

My life. As I remember it. Or as it was told to me the next day.
  • Home
  • Current Schedule
  • Personal Records
  • Upcoming Races

Editing

Published by Nathan Powell on March 8, 2007 08:17 pm under computers

Again tonite I find myself trolling various Emacs and Vi(m) sites. I was struck a bit by something I saw over and over…namely that Vi(m) has a steep learning curve because it’s modal. I don’t think I find that to be true. Is it just me or is modality more intuitive? I think it makes a lot of sense. Of course it made a lot more sense when the ESC key was closer to home row, but since I almost exclusively use a laptop keyboard, ESC is easily touchable without moving my hands. What say you?

12 Comments so far

  1. Patrick on March 8th, 2007

    Well, first off, use xmodmap to make Caps Lock your ESC key for Vim’ing.

    Second, Emacs has modality, anyone stuck invoking a command and needing CTRL-g to get out knows that. Granted, emacs has less modality than vi, but I think people overemphasize the modality argument.

  2. Mark A Hershberger on March 8th, 2007

    Everybody knows that you remap the capslock to a control, not escape!

    Geez!

  3. Patrick on March 9th, 2007

    Right…. Do you touchtype? With left pinkie on CapsLock, you should use the right hand for the prefix character. So what prefix character do you use?

  4. Mark A Hershberger on March 9th, 2007

    gar! something is happening to my comment!

    I do touch type. I don’t know what you mean by “prefix character”.

    I used sun keyboards during, say, the first 5 years of my post-college employment. I was thrilled when I found that the original IBM PC/XT and /AT keyboards had the control key in the correct place. In addition to which, the gnome UI provides the ability to remap the capslock in this way, but not the way you’ve suggested.

    I’m not saying it doesn’t make sense; I just don’t use vi enough to know that it does. I do use emacs extensively, though, and the remapping that “everybody knows” does make sense. (Though, some people — see comments on the first link — think the control key should go under the thumb.)

  5. Mark A Hershberger on March 9th, 2007

    (meant to say: I used sun keyboards throughout college, too.)

  6. Patrick on March 10th, 2007

    Default emacs uses CTRL-x as the prefix character. Not using the right pinkie for CTRL means chording a CapsLock+x which feels weird to me (I can’t keep my fingers on home row while doing that).

    I figure using CapsLock+k would be a good prefix character for touch typists (little disturbance off home row and typing demand split between hands).

  7. Nathan Powell on March 10th, 2007

    I think I am against anything that uses ‘k’. As that is kill for most things. C-x k (kill buffer) C-k (Kill line forward). But I get the drift.

  8. Patrick on March 10th, 2007

    C-x k could become C-k k. Kill line forward doesn’t work anyway; last I used emacs I changed it to delete-line, which could be C-k C-k.

    I think of the prefix character as a modal switch (like Esc in vi), you hit it and then you type commands, so it doesn’t really matter what key you use, other than it types fast.

  9. Mark A Hershberger on March 10th, 2007

    I taught myself touch typing in junior high, so maybe I”ve developed my own style?

    In any case, for C-x, my pinky is on the capslock and my index finger hits the x key. Otherwise, when typing (like I just did on that “x” back there), I use my ring finger as normal. When the prefix is C-c, I do pretty much the same thing.

  10. Nathan Powell on March 11th, 2007

    Patrick, which version of emacs are you using? As surprising as this is to me, 22 has some usability features that I like. And kill line forward works there. I can’t speak to older versions.

  11. Patrick on March 11th, 2007

    I used 21, the kill-forward sucked usage-wise (I’m used to ‘dd’ in vi), so I just bound C-k to delete the line instead of from the cursor to the right.

  12. Nathan Powell on March 11th, 2007

    Gotcha

Posting your comment.

  • Search

  • Archives

    • December 2008 (5)
    • November 2008 (2)
    • October 2008 (10)
    • September 2008 (4)
    • August 2008 (10)
    • July 2008 (11)
    • June 2008 (14)
    • May 2008 (15)
    • April 2008 (10)
    • March 2008 (16)
    • February 2008 (17)
    • January 2008 (37)
    • December 2007 (21)
    • November 2007 (30)
    • October 2007 (29)
    • September 2007 (22)
    • August 2007 (30)
    • July 2007 (49)
    • June 2007 (32)
    • May 2007 (29)
    • April 2007 (38)
    • March 2007 (26)
    • February 2007 (25)
    • January 2007 (23)
    • December 2006 (10)
    • November 2006 (12)
    • October 2006 (9)
    • September 2006 (9)
    • August 2006 (5)
    • July 2006 (13)
    • June 2006 (9)
    • May 2006 (8)
    • April 2006 (11)
    • March 2006 (12)
    • February 2006 (12)
    • January 2006 (13)
    • December 2005 (15)
    • November 2005 (19)
    • October 2005 (8)
  • Categories

    • blather (64)
    • books (10)
    • computers (178)
    • cooking (1)
    • economics (3)
    • emacs (3)
    • football (1)
    • gaming (1)
    • hiking (5)
    • housekeeping (5)
    • lifehacking (7)
    • music (3)
    • paddling (2)
    • personal (1)
    • politics (21)
    • programming (71)
    • running (241)
    • smoking (40)
    • sysadmin (11)
    • tlc (10)
    • Uncategorized (1)
  • Pages

    • Current Schedule
    • Personal Records
    • Upcoming Races

Copyright © 2009 Running is therapy
WordPress Theme based on Light Theme