guillermooo / Vintageous

Vi/Vim emulation for Sublime Text 3
http://guillermooo.bitbucket.org/Vintageous/
Other
1.64k stars 115 forks source link

"Dot command" doesn't grab full text input from insert mode for repeating later #993

Open prurph opened 9 years ago

prurph commented 9 years ago

In Vim after doing something like cw > "foo" the . command will afterwards execute both the cw and the text, so you can replace multiple words with "foo" just by repeating the command with .

In Vintageous however only the cw is captured, so the dot command will execute it, deleting the word, but will immediately put you back into normal mode; it does not execute the actual character insertion.

The default behavior in Vim is more or less that . repeats whatever was done inside the last insert mode operations. Not being able to do this in Vintageous reduces efficiency in a lot of common spots.

The Vintageous behavior is "correct" for single character operations like r but not for things like cw, s, cb, 'caw', etc.