Vim is a great editor, the best choice for a programmer!
A short list of reasons why you should study it:
1. Console Interface
Your favorite editor is ready at any time on any machine.
')
2. Scrolling
To move to 42 lines below, simply type
42j , and if you want to scroll through the document halfway through the screen below, then use the
key combination
Ctrl + d . And forget about scrolling using the mouse (not to mention the trackpad). View code with jerks without a smooth interface is much more convenient!
3. Multiple replacement (multiple cursors)
Great feature! Do not worry that you do not have it. You can always find a ready-made plugin (thousands of them) or even write your own, if it’s not found.
4. VimScript
VimScript is a great language. It is definitely worth spending the weekend learning it, because a new language is always so much fun!
5. Instant transcode to library source code
IDE is for wimps. Real programmers always know how to use a specific function and how it is implemented, and if necessary, they can always correctly type the path to the desired file and type
G55 to move to line 55, because the announcement of the function of interest begins on it.
6. Tips in code
A clever IDE will replace getting a word from the localization dictionary with the word itself (for example, t ('form.saved') will be replaced with “Form saved” in RubyMine in the rails project). But Wimmer always keeps the entire dictionary in his head, and if not, he spent 10 hours and wrote his own plugin, which does it for him.
7. Git diff
These excesses are alien to Wimmer, Wimmer will type
git diff in the console and immediately understand what is happening, Wimmer doesn’t like all these sweet things.
8. The transition from the method in the controller to the theme template in one click
Initially, this is not provided in vim, but you can always find a ready-made plugin or write your own, which will do the same thing as these clever IDEs of yours.
9. Force majeure
The hard disk accidentally broke - it doesn't matter, you can restore the config from backup. But so what, that the last written plugin was not added to it two days ago, because now you can write even better!
10. Quick opening of the desired file in the project
Another great function, press the key combination, open a window and start typing the name of the file in it, and the editor interactively prompts the file with the most relevant name, very udbno. Nonsense that such a function is not in vim, but there is a wonderful plugin with it. As a result, in a year you will have a relatively full-fledged editor, a replacement for which you can buy with approximately the same functionality out of the box for only $ 99 now.
11. Last but not least
Vim is a great editor, especially when you often edit something on a remote machine. But it will never compare with a full-fledged IDE, which knows more about the project and is always ready to simplify your life.
: wq
ps The purpose of the article is to show the absurdity of using vim as an editor for something serious. It is a good tool for editing scripts on a remote machine, but as an editor for a programmer it is a dubious pleasure. You can see that all items except the first one make anti-advertising to the editor rather than encourage to use it.