4 Reasons That Will Make Vim Your Favorite Editor
source link: https://hackernoon.com/4-reasons-that-will-make-vim-your-favorite-editor
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Vim is a powerful text editor, and in this post, I will convince you to use it. Feared and loved by coders and writers, it’s a controversial text editor, with good reasons. It has a steep learning curve, but it’s well worth it.
In this post, I’ll explain why you should use Vim or Vim key bindings in your favorite IDE.
What is Vim?
Vim is a free and open-source text editor. It was first published in 1991. The name stands for Vi IMproved (vi is a different text editor). It's known for its steep learning curve and how hard it is to exit.
As of today, 2.6M people have viewed the question "How do I exit the Vim editor?" on StackOverflow.
But don't let this frighten you! (and by the way, it's
:wq to save and exit)
Why You Should Use Vim
Here are four reasons why you should use Vim (or Vim key bindings).
Key bindings are optimized for efficiency, so your hands stay where you learned to put them: left hand on
asdf and right hand on
jkl. It offers many shortcuts and forces you to only use the keyboard (that's right, throw away your mouse!).
Once you learn the shortcuts, even the basic ones, you'll quickly be more efficient at writing text and code. You can edit the text, navigate your document, and execute commands without leaving Vim.
I won't go into detail here about exactly what key bindings are available. Read on to find out where to learn them.
Vim key bindings are available for all popular IDEs. So you can enjoy all the cool modern features while using Vim's awesome key bindings.
Not only does it come with a ton of shortcuts, but you can also create your own! Even your own plugins. There's a big community of plugins.
You can find ~20k plugins at VimAwesome. There are many plugin managers also available to make it easy to manage your plugins.
When Vim starts it reads a configuration file called
.vimrc. This is where you can use your custom shortcuts to load your plugins.
It's Available Everywhere
Vim is available pretty much everywhere. Whether you're using Windows, macOS, or a UNIX-based distribution, it's there. This makes it convenient to work in environments without a graphical user interface (GUI). Such as a Raspberry Pi.
There are even extensions for your favorite browser that add key bindings.
You Will Feel Awesome
I saved this point for last but it might be the most important one. Using these key bindings will make you feel awesome, I promise. Your coworkers will envy your speed, and your parents will consider you a genuine computer wizard! 🧙♀️
Now that I've convinced you to use it, let me tell you where you can learn it.
Start Learning Vim
I recommend you start with
vimtutor. It's an application available in macOS and UNIX-based distributions. For Windows, you need to install Vim to get access to it.
vimtutor in your terminal to start learning!
Once you learn the basics, there's this awesome cheat sheet and endless tutorials online.
Vim is a powerful text editing application that’s heavily used by software engineers. There are key binding plugins for all major IDEs, so you can enjoy the cool features of your IDE while still using Vim key bindings. It's highly customizable and its community is very active.
Start learning today!
Also published at prplcode.dev
Aggregate valuable and interesting links.
Joyk means Joy of geeK