4 ms·
It’s not VIM specifically, it’s the vim way, a language for editing texts. Actions are atomic and composable. And then you can add your own commands. You could
by skydhash 3y ago
It’s not VIM specifically, it’s the vim way, a language for editing texts. Actions are atomic and composable. And then you can add your own commands.
You could probably use VIM inside VSCode but the latter does not expose the necessary API. What you got instead is a very simplified version. Emacs does and evil-mode is a very good vim.
- IshKebab 3y ago> Actions are atomic and composable. That sounds like a downside. Incremental editing with multiple cursors is so much better than e.g. regex based find/replace or long vim commands because you get immediate feedback. If you make a mistake you just undo. You don't have to start again from scratch. With complex atomic editing operations it is painful to get them right because you only see the final output. Atomicity of complex editing operations is not a desirable property.
- skydhash 3y agoUndo is just the letter u. With the concepts of text objects, boundaries and movement, making mistakes is not easy. Code is also structured which makes it easier to manipulate. Atomicity here has a linguistic meaning. You know the basic operations, and you compose them to express a more complex ones. Like d is delete, and w is one word to the right, dw means delete one word to the right. di” (delete in) is delete the characters inside the quotes and da” (delete around) also deletes the quotes too. Once you got the hang of the languages, editing, inserting and selecting text becomes as easy as thinking. N.B. Normal mode is the default mode, not insert mode