Wikia

Vim Tips Wiki

Script:3998

Talk0
1,612pages on
this wiki
Revision as of 16:40, February 17, 2014 by Kyptin (Talk | contribs)

Request: make text insert atomic for undo/redo and repeating

When I use paredit (in Clojure), my insertions of text seem to be broken up into multiple commands, as evidenced by the behavior of undo/redo and repeating (i.e. the . command).

For example, I enter insert mode and insert the following text:

(def foo (+ 1 2))

...then escape back to normal mode. If I then hit ., I would expect the same text to be inserted again, but instead, only + 1 2 is inserted. In a similar vein, I have to hit `u` (undo) 3 times to fully undo my insert.

So, my request is, can you make text insertion atomic with respect to these commands?

--Kyptin (talk) 16:40, February 17, 2014 (UTC)

Around Wikia's network

Random Wiki