4 ms·
Yes, and no. I was referring to your criticism that people still use it. See, people do not use it because it is vim, the editor, but because it is vim, the tex
by terhechte 13y ago
Yes, and no. I was referring to your criticism that people still use it. See, people do not use it because it is vim, the editor, but because it is vim, the text manipulation language. Really. There's nothing great about the editor itself, it is rather clunky, lacks solid UI abstractions, blocks the UI while it is busy doing something, has an awful scripting language (vim script), and more. If you take away the text manipulation language, nobody would use it.
Another point validating that is that people write vim-layers for all kinds of editors and IDEs. They don't port the editor (i.e. the weird UI blocking, or the text mode, or the other things or even vim script), they port the text manipulation language.
Coming back to what I originally said: You seem to not get vim, and how it allows to easily modify text with a manipulation language (not a programming language!). Say I'm at the beginning of a line:
#[exampleObject: obj displayTitle: @"this is the title"];
[delegateDoSomethingWith: @"this is the title"];
Say I want to take the 'this is the title', and change the contents to 'new title. In the vim-language, that's the following code (cursor pos is the #):
/@"<CR>2lci"new title<ESC>n2l.
or
Vj:s/this is the title/new title/<CR>
This is a simple example, but for moving around text and manipulating it (i.e. everything after you wrote the initial code / function class / whatever) it is beyond fantastic.
What's not so good, as outlined above, is vim the editor, simply because it is old and doesn't have a more modern UI, etc. There're many projects that tried to address this, but everyone, so far, failed to implement the text manipulation language as deeply as in the reference implementation vim. What comes close is evil for emacs.