4 ms·
Eh, I disagree. First, vim emulation is horrific -- absolutely horrific. With the exception of ViEmu, and possibly the new Emacs one (haven't had the chance t
by sillysaurus2 13y ago
Eh, I disagree. First, vim emulation is horrific -- absolutely horrific. With the exception of ViEmu, and possibly the new Emacs one (haven't had the chance to try it), there's not a single good Vim emulator. Second, @@ is two keystrokes, and it's incredibly annoying to type @@n@@n@@n@@n@@n@@n in order to invoke the macro 6 times. " n n n n n n" is much easier.
- lowboy 13y ago@@n.n.n.n.n.n. isn't much worse than the version with spaces. edit: but . doesn't work for macros, as was pointed out.
- sillysaurus2 13y ago. can't invoke a macro.
- lowboy 13y agoHuh, so it can't.
- qqqw 13y agoWhat do you mean by "n"? Moving to the next position in a search? You can structure a macro to end with going to the position of next edit. Then you can hit 100@@ or whatever and do all of the edits in one go.
- sillysaurus2 13y agoMost of the time you want to individually review each instance of what the macro is doing before invoking it, so 100@@ is rarely used. (At least by me.)
- belden 13y agoMacros in vim can call themselves; so if you want to make an edit across an entire file, something like: <esc>qqq //clear q macro qq //start recording q macro /foo // search for something 3clbar // do some edit @q // call q macro q //done recording @q //invoke q macro No need to guess how many times to call your macro.
- splawn 13y agoevil-mode is fantastic. (I think it might be the new one you haven't tried yet) combined with key-chord mode, it will handle the "jk mapped to esc" use case, I have mine mapped to "jj" (key-chord-define evil-insert-state-map "jj" 'evil-normal-state)
- justinmk 13y ago> there's not a single good Vim emulator vrapper (for eclipse) is on par with emacs evil, actually. https://github.com/vrapper/vrapper https://github.com/vrapper/vrapper