April 13, 2016

vim is my favorite cli text editor. It doesn’t require much configuration, but if you edit code and use spaces in place of tabs, you probably want to add a line to your ~/.vimrc:

set tabstop=2 softtabstop=2 expandtab shiftwidth=2 smarttab

Of course, choose the number of spaces that suits your needs. 🙂