After several editors and ides, Vim was the best fit for me. Once you learned Vim, there was almost no incentive to switch editors (except Neovim). I believe there are many Vim users like me, Vim has this feeling.
The truth of Vim as I understand it is:
- Minimalist thinking
In fact, Vim represents a geekiness of KISS, not just ostentation. The idea is: “Choose what you need and leave out what you don’t need”, a kind of minimalism. A bloated tool may provide 100 percent of the functionality, but in reality you only need 10 percent of the functionality, and the other 90 percent of the functionality you don’t even bother to study. So why not ditch the bloated 90% and pack light?
Of course, it is Vim’s mission to display properly, activate the community atmosphere and attract new people to the pit.
- Vim model
Vim is different from other editors in that it provides patterned editing and text objects. Any Vim plug-in that is emulated by an IDE or editor does neither of these things. Through the mode, Vim endods the same key with multiple functions, greatly improving the efficiency of the key, allowing us to concentrate our hands on the central area of the keyboard, improving efficiency. In addition, Vim treats all texts as objects, such as deleting a word and diW (delete in Word), which I can understand as Vim language.
I remember reading a paragraph of text before, the general content is like this:
You have to kill Vim three times before you really like it, or you’ll give up and go back to the IDE. In Vim’s world, you have to do everything yourself, so it’s not for those who don’t like to play. If you’re not 200% curious about it, don’t play it, or you’ll definitely drop your keyboard.
Why is Vim writing code fast? Assuming you’ve exhausted yourself three times and successfully configured Vim.
So begin the magical Vim journey. You find:
- You delete code faster than your teammates: “First Blood”
- Autocomplete is faster than teammates
- Locate code in 20 gigabytes of files to kill your teammates
- Complete various shells in Vim, Killing your teammate “Killing Spree” in seconds!
- Elegant update upgrade, remove Vim plug-in (prerequisite Vundle) “Dominating”!
- Random custom shortcut keys, completely your own style, a configuration file to take with you. Or zip the Vim package and take it with you, where you want to go, without waiting for your teammates to bring the rhythm. Unstoppable!
- Is your teammate still using the mouse? Then you’ve evolved. Wicked Sick!!!!!
- What? Start writing documents using Vim Markdown? Damn it, you’re already on top of it! God Like!!
- You can’t live without Vim. You went from being so screwed up that you wanted to smash the keyboard, and now you love him. aM-m-m-m…. (Repeat 8 times) Monster Kill
- You were meant to be with Vim forever! . Holy Shit
You begin to question some of your previous actions:
- To delete a line
dd
Why select a row and then press Backspace? - Clear a line
S
Why mouse over a row and press Backspace? - Add a semicolon to the end of a line
A;
It’s fine. Why move the mouse over the end and click and press;
? - And then I add a semicolon to the end of line N,
VNj
To select multiple lines:normal .
(point can repeat the last operation) not good, why to mouse a point and then fill one by one? - After copying row A and inserting it into row B, DD drops row A and hits p on row B. Why mouse over A, CTRL + X, then hit Enter at the end of B, then Ctrl-V?
So, for those of you who like Vim, let’s talk about Vim: From entry to mastery