Since I started studying programming, I have heard about use Vim to code, but I have always used IDEs such as Visual Studio, CLion, IntelliJ, Eclipse, NetBeans, or text editor like Sublime and Atom (what I’m using in the last two years). When I had a look at vim tutors, or people using vim, I always thought, “That’s is so hard”, “I will never learn this”, “Look at this shortcuts”, “How I start using this?”, but in the last two months a several reasons made me to start learning and using Vim.
Vim is a light and fast text editor
Today almost all text editors like Atom with a tons of Js, sublime text and VS Code just fuck off your computer memory, and I’m not even going to talk about IDEs because anybody knows how much they consume your computer memory (And I’m not a person that is against using IDEs, in some kind of development it is good, like Android development for example).
Vim is a extensible text editor.
Everybody know, you can easily adapt vim for whatever you want to do, you can install the plugins that you want for power up your productivy.
You can use Vim everywhere, yes, vim is cross-plataform, almost all operating systems supports vim, and others editor like nano no. And plus, you can use vim mode in a lot of editors/IDE’s like, emacs, sublime, xcode, eclipse etc.
Mainly because of these reasons I decided to Start using Vim.
Where did I started?
Like most of the people when I started, I decided to start using an already configurated Vim, like, YADR and The ultimate Vim configuration, these are awesome vim, I tried for few weeks on my personal projects, but when I was using them I felt lost in plugins, navigation, shortcuts and I have spent a lot of time searching on google how to do simple things, searching for understanding what that plugin does.
So I decided to start from zero installing Gvim (you can find the difference between gvim, vim-gtk, etc here) and searching for plugins that I need, the color scheme that I like among others, what happened? I started to like Vim, I started with raw Vim, and as necessary I went on installing my plugins and learned new tricks and shortcuts.
Which plugins have I installed on the beginning? Heres a list of them:
- ctrlp.vim (I can’t live without ctrl+p command of other text editors, and heres a plugin to do this on vim)
- nerdtree (The legendary tree explorer)
- vim-polyglot (Collection of language packs for almost all languages)
- grep.vim (Searching tool for Vim)
- vim-rails (I installed this because I’m studyng Rails but its not a “Essencial plugin”)
- fzd.vim (To use global search (Using the_silver_searcher))
I installed all these plugins using pathogen.vim because I found it more simple.
Finally, I spent less than an hour and already had a Vim to start coding and learning. After a few days I installed some other plugins, but for the start what I have mentioned is enough and Ipretty reccomend this aprproach for everyone that want to start and don’t know where or how to start. With this method you will learn the plugins you’re installing and the shortcut while you are working on your personal projects, and when you feel safe developing using Vim, you can start using it on your job.
If you want, you can watch some vim casts to improve your ability at http://vimcasts.org/, it’s very good quality.
If you want, you can find my vimfiles here, and its all documented.
That’s all for today folks, don’t forget to follow my blog and my twitter.