It started as a throwaway comment:
If I could wrap my head around VIM, I could do projects via Prompt (SSH) on the iPad, to a cloud VM, and ditch the PC—
Chris McLeod (@__chrismc) September 21, 2013
But like all interesting ideas, it took root in my brain, and I started to wonder “no, really, what if…”
This morning I woke up deciding to finally learn Vim. It’s been on my “to-do” list for quite a while – years, in fact – my old boss used to be a bit of a Vim guru, who could edit file on the Linux boxes 10x faster than me using GEdit, which I used to marvel at as a junior.
Beyond the “code from my iPad” idea above, I have a couple more reasons for learning Vim:
- Vim is near universal. It runs on pretty much any platform, and it’s standard on virtually any Linux distro
- Since switching back to Linux, I spend half my time in the CLI anyway – Vim cuts down the need to switch away to something like Sublime
- Having a CLI-based workflow reduces the amount of “stuff” I need to set-up on a computer to write some code
But coming back to the iPad, I’m quite keen to get this working because I’ll be moving house soon, and it’s more than likely I won’t have space for my current PC set-up, and a new laptop is out of my budget for now. So if this works it will let me keep tinkering on projects even without a “proper” computer. I’ve been in this position before, so I know the limitations. This time, however, I’m using an iPad Mini and a Logitech Bluetooth keyboard case.
My Set-up/Learning Resources
To get myself up and running, I’ve installed and configured Vim on my PC, and will install GVim on my work laptop. I’m going to try and use it in place of Sublime Text Editor as much as I can, but give no promises when it comes to anything work-related, as that generally needs done fast.
I’ve fired up a Ubuntu box on Joyent (starting with the first 5-minutes post I linked to last week), and replicated my PC’s Vim configuration, so I can start working from the iPad straight away. I installed Git, and authorised the box with my Github account, so I can push and pull to my heart’s content.
As I’m just starting out, the configuration I’ve gone for is very basic and minimal, but giving me room to grow as I get more experienced. Essentially, I’ve installed Pathogen, and applied their recommended beginner defaults.
For learning resources, I’ve found there’s a heck of a lot out there for Vim. So much so, I’ve chosen to limit myself for now so I don’t get overwhelmed.
- The Pragmatic Programmers books are somewhere I always check when I want to learn something new. I find their books to be practical, well written, and informative. True to form, Practical Vim (from what I’ve read so far) is an excellent introduction to “real world” Vim.
- Vim Adventures is a neat, interactive learning tool, which turns learning Vim into an 16-bit adventure game.
- VimCasts has 50 free screencasts, dealing – unsurprisingly – with learning Vim
Feel free to suggest some more good resources though – as I get more experience I’ll need to branch out into other areas!