Most of coders used to use editors that highlight syntax, or support auto complete, or etc…
So that we don’t think in Vim as the suitable editor for us. But do you know you can do what you do with any other text editor with VIM? In this article I’ll show you somethings I use in Vim to make my life easier.
When you open your Vim editor to code you see your code in bad case like that:
OK, I agree with you it’s boring, let’s try to comstomise it to be suitable for us.
For me I don’t do any feature but 2,
- Syntax Highlight
- Line Numbers
So, create a file called
.vimrc in your home folder:
Then open it with any editor you like, for example with Nano or Vim:
Now, it works well, let’s add the feature we need:
For the Syntax highlight and the line numbers:
NOTE: You can add any feature you want in this file, just google it to find many of Vim features.
Now, our vim became like that: