Do the other editors give you the ability to easily repeat the last command on a specified part of the text (. in vim)
Yes, I can tell you that in Emacs it is C-x z (and keep pressing z to repeat, much like .). In SublimeText it's Cmd+Y.
and the ability to specify the number of times to execute the command after, etc.?
Yes, in Emacs nearly any command can have a numeric prefix (which usually means repeat, but can also be used to specify a column to sort) with either C-u or Alt+{Number}. So Alt+3 Ctrl+D will delete three characters, just the same as Esc+3+x in vi.
you're basically coding your editor as your use it, which I don't get the feel of in any other editors. I'm not sure they'd be easy to do in a non-modal editor.
This is just what it's like in Emacs. I use macros all the time. In fact, you can record a macro, then edit it like a function, save it, tweak it and reuse it. There's a complete programming language that underpins Emacs - it's quite stunning.
View all comments
Show parent comment
1
u/gavinb Feb 28 '14
Yes, I can tell you that in Emacs it is
C-x z(and keep pressingzto repeat, much like.). In SublimeText it's Cmd+Y.Yes, in Emacs nearly any command can have a numeric prefix (which usually means repeat, but can also be used to specify a column to sort) with either C-u or Alt+{Number}. So Alt+3 Ctrl+D will delete three characters, just the same as Esc+3+x in vi.
This is just what it's like in Emacs. I use macros all the time. In fact, you can record a macro, then edit it like a function, save it, tweak it and reuse it. There's a complete programming language that underpins Emacs - it's quite stunning.