Installing Vim on Crunchbang

Crunchbang (also refered to as simply #!) is a minimal Debian distribution that I’ve fallen in love with. I switch from OSX to Crunchbang every now and then, since I plan #! to be my primary OS when my MacBook Air dies. Crunchbang comes with Vi installed. This is how to install Vim, which will also install the vim command line tool.

If you go to the Vim downloads page and search for Unix builds, you’ll be directed to this page. However, I got to some errors following this guide, due to missing dependencies. Basically, what I had to do, was installing those dependencies first:

Unless you chose to install the development tools when you first installed #!, you might need to add mercurial to the previous command.

Now you can follow with the instructions in Vim.org, that I post here too for reference:

Now, next time a Vim version is released, you can just go and fetch the changes, and build it again:

Hello, Vim

For years, I have been using eternal text editors for programming. When I was doing mostly PHP sites that were “deployed” (ehem) via FTP, Espresso was my editor of choice, because I liked (and still like) the built-in FTP client that lets you sync files with the server. Then, when I started to write Ruby and working on code that wasn’t uploaded via FTP, I switched to Sublime Text. From it, I enjoyed the fact that the default theme is already cool and that it automatically wraps strings, method calls and so many other things: I had to type less, which is always fine.

However, for the last couple of months I have been getting rid of a lot of stuff in my life; things that I don’t actually need and that just take space and effort to move around. Books, too much clothing, useless objects, etc. Software is part of this. I’ve been trying to use less and less external software (that is, software that needs to be installed) and just go on with the default stuff or web software when I need some specific functionality. My laptop is lighter than ever, and I’m less dependent on what’s in it.

Two days ago I started using Vim, the text editor I thought I’d never use do to its bad reputation as a hard learner. And, to my surprise, it feels so good. I started with vimtutor, which makes a 30-40 minutes introduction to Vim by practice, and after that I was able to set to some basic settings and start using it. I love having all my workspace in one single window and still getting cool features like autocompletion (using tab) or autoindenting.

Here is my very first version of settings for Vim, using Gruvbox theme.