Why I use vim to write articles — and you can too.
‘Do you even vim?’
I read this sentence as an affront to my ego, and so I decided to learn vim.
I started off here.
Since then, my life has changed for the better. I’ve started using vim as a generic efficiency tool.
One of the many things I use vim for is writing.
In this article I’ll share 3 benefits I gain from using vim for writing, and some resources at the bottom.
1. Minimises Distraction
When drafting an email, new emails may come in.
When you’re typing on the phone, new messages may pop up.
But when I use vim, I maximise the window, and all I see is a single-colour background and a sea of tranquility.
Welcome to a zen-like experience.
2. Minimises Edits
Unlike using Word or a text edition, you don’t get spell check on vim, at least not by default.
Also, the piece you’re working on looks so unlike the final product that you won’t be distracted by graphical concerns.
You’ll simply let your flow of thought flow. Even as I type I feel like I’m just speaking to you, the reader. (Nice to meet you.)
Leave all the editing and spellcheck at the end.
3. Maximises Efficiency
Option + Delete deletes a word in the normal keybinding. Instead of typing backspace 10 times to delete the word ‘juggernaut’, option + delete cost two keys only.
But on my keyboard, it costs me three keys, and they’re set quite far apart from each other.
‘db’ does that in vim.
If I want to delete three words backwards, simply ‘3db’.
If I want to delete three lines, 3dd.
If you vim, you know.
Resources
Simply enter `vimtutor` in your terminal and you’ll see a tutorial show up.
But first, please, read this: https://stackoverflow.com/questions/11828270/how-do-i-exit-vim






