![]() About a year later, I was really fast in vim. After about 6 weeks I was having fun with vim. I tried emacs for a bit when I was first jumping into lisp, but was also evaluating vim at the same time. However, I've worked with a lot of different people who used a lot of different approaches (yes, including that one where you display the line offset from point and type the number of every jump) and in the past decade I have not found any of them to be faster than me - although I have found a few who were roughly the same speed.Įmacs evil, sure, but please don't forget vim slimv. When I do, I'll probably change my approach. I'd love to meet somebody who could navigate source code faster than me and learn how they do it. Lots of people seem to neglect the power offered by key repeat. A few simple operations combined with key repeat seems to work really well. I'm not trying to minimise the number of logical keystrokes, I'm trying to minimise the time and distraction of navigation. ![]() It always amuses me watching people try to do it "the right way" and then spend 30 seconds trying to work out what sequence of buttons will get them there, then spend another 30 seconds remembering what they wanted to do when they got there. For this I move my hand slightly further and grab the mouse. Sometimes I want to make a complicated motion in the horizontal and vertical axes at the same time in a context which is not well-formatted source code and hence has no good paragraph/word landing points. For anything further away than that, I'm going to use isearch to get closer. What I invariably want to do is "move down one paragraph" (C-down) or "move to that spot I can see on the screen" (1-6 lines, tap up/down 6-30 lines, hold the down key for about a second until I'm within a line or two, then tap up/down a couple times >30 lines and use pgup/pgdown to get closer). I cannot recall the last time I wanted to move 16 lines - that would imply I stopped to count the lines. I guess it all just boils down to "Use the tool you can best configure to work the way _you_ want it to." I think the linked article was trying to make the case that Emacs can be that tool for vim users. I'll change them eventually the hardest part is deciding what to replace them with. for up and down sucks, especially when I try to use M-p to select the last input in minibuffer history and hit M-o instead, prompting me to select Bold, Italic, or Other. Sequential chords, though, like C-c C-v C-d, are right out, and using C-n and C-p and co. And I'm not saying modal input isn't useful Magit's input system is closer to vim's than to the rest of Emacs, as is Ediff's, and I like it that way, but I prefer chords for editing - less state to hold in my head. Of course, both editors let you do basically whatever you want, so really the text input issue is just one of whether you prefer chording or modal input. I can't even remember at this point how much of this is standard, but I've replicated the forward/backward movement for killing: C-d deletes a character forward, M-d kills a word, and C-M-d an expression. M-a and M-e do the same with statements in place of lines. C-a moves to the previous beginning-of-line, C-e to the next end-of-line. emacs: (setq emulate-mac-finnish-keyboard-mode t)īut is there any way to use this feature in Emacs 24? Has anyone ever tried porting emulate-mac-keyboard-mode.el to standard Emacs?Īnd no, cmd as meta is not an option for me.Vim does the orthogonality thing better, I'll admit, but Emacs' separate chords tend to follow useful patterns, too.įor example, moving forward a character is C-f, moving forward a word is M-f, and moving a balanced expression forward is C-M-f. [ with option(alt)-8 and still use alt as meta when I add this into my. So in Aquamacs, I can use Option key as Meta and everything is fine, I can type e.g. This question speaks about the same issue, and one of the answers is "use Aquamacs". ![]() Or use, e.g., M-x emulate-mac-german-keyboard-mode. You can find them in the Options → Option Key menu. Option key mapped to Meta, they will allow you to input many commonĬharacters (,\, etc.) directly with the Option key, just as you The emulation modes might be just what you want. If you use a non-English keybboard layout, Set the variable mac-command-modifier to ‘meta - you will loseįunctionality, of course. Special characters” in the Options menu to use Option as Meta, or you You can deselect “Option key produces only On a variety of keyboards, the special character input methods take Option is used to input a lot of non-ASCII characters such as ü or £ In AquamacsEmacs, Option (Alt) is mapped to Meta - however, because The only thing keeping me in Aquamacs is this: Emacs 24.1 was just released, and I once again feel inclined to use the "real" Emacs (Cocoa GUI version, from ) instead of Aquamacs.
0 Comments
Leave a Reply. |