I'm new to Vim and install that in windows 10.
I write this instructions in Vim then in normal mode pressed u
and all the instructions disappeared.
console.log(899) hello you can write some simple Javascript instructions here....
But when I use VsCode and press Ctrl-z all the instructions will not disappear. VsCode deletes word by word where Vim deletes all the things.
How can I set this behavior in Vim?
u
is to undo the last action in a whole. Here, the action was to put a full line (not a word.) The undo will work as you expect if you insert one word a time… However, you can delete a word the cursor is on withdiw