vscode-vim
vscode-vim copied to clipboard
ciw and viw doesn't work as expected.
I use these two commands very much, viw
to select a single word under cursor or ciw
to replace a single word under cursor (delete the word and leave the cursor in place in insert mode to type the new word).
VimStyle is my favorite extension, it even alters the default behavior of u
. In default Vim everything from the last mode-change will be undone with u
but as in VScode we don't change modes for saving a file, so that default behavior is often dangerous, but this extension changes that behavior in a nice way. Because of this behavior this is my favorite Vim emulator for VSCode, but I miss the above two command too much.
Thank you for using!
ciw
and caw
is work in progress. https://github.com/74th/vscode-vim/tree/feature/%2368
u
calls only VSCode undo function. There are many things to do for u
, and it is postponed.
@74th You can also make the u
command configurable. Like I suggested to the other vim emulator extension.
For what it's worth, I prefer the finer-grained undo. The ciw
and viw
commands, for me, are important. (I'm not suggesting, even for a moment, that my priorities should be considered above anyone else's. I merely mention it as a datum of user-feedback.)
Thank you, by the way, for the extension. I find the more popular Vim extension breaks too many native VS Code keybindings and extensions. I find yours quite intuitive in terms of what works as Vim and what works as VS Code.
I forgot to mention a workaround. For those missing ciw
, you can use bcw
to go to the beginning of the word before changing the word, giving the same effect. Unfortunately, bvw
won't do what you want because it will select the white space between the word you're trying to select and the next.