Sublime Text style multi line selection with Vim

The multiple selection feature of Sublime Text is something that helps you a lot when you’re aiming to change a variable name multiple times in one file. This is immensely practical, also while re-factoring, changing font-names, colours or anything that appears more than one time in your files. The plugin can be found here: vim multiple cursors, I’ve also added it to my vim plugin repository.

Here an example, if I for example want to rename my callback function to cb:

vim-multi-line-edit

The keybinding for selecting the next match is CTRL+N, to delete: x and to type something new: i (going to insert mode) cb.

Best Git Tools: GitGutter – show changed lines in your editor

GitGutter is an amazing idea, that gained a lot of traction through the Sublime Text plugin created by J.D. Isaacks. The plugin lets you see which lines have been changed since the last git commit, right in your editor, while you’re coding. This is brilliant and it will prevent you from unwanted changes and make you more aware of how you’re changing code on a project that you don’t maintain alone. Continue reading “Best Git Tools: GitGutter – show changed lines in your editor”

CigTrack Day #3: Open Source Software

Linux and other open source software play a significant role in technology nowadays. Linux runs on most supercomputers, server systems and most smartphones (inside Android) in the world.

I also use Linux on the desktop and especially for development it’s just great. You can test in an environment that is very close to your server and there’s many great tools that are made for developers. Also Linux makes it easy to write your own tools. Continue reading “CigTrack Day #3: Open Source Software”

What writing a book looks like

I just wanted to show, quite quickly, what combination of windows I’ve been looking at a lot in the past months.

Basically I’ve been writing the book I’ve been talking about in gVim, which is a GUI frontend for vim. With it I use the Tomorrow Theme and Adobe’s Source Code Pro.

writing_a_book

Git for Book writing

Git is amazing and I love it. I’ve been using it to write the book and to track my MarkDown source files. It’s been really easy to figure out when I did what, which is great when you’re dealing with several releases of software and you have to adjust things. It flags everything you change, everything you add, everything you take away. It’s nice to know that no matter what you do, you can always go back, you have a history in many small, but meaningful pieces.

Editing and Revisions

The editing was done in regular office software like Word and Libre Office/Open Office to correct mistakes, elaborate, clarify, etc.

It’s very reasonable and it’s been a struggle for me once in a while, because I have a hard time using desktop publishing and home office products. They crash, are buggy and just don’t offer a very good writing experience. This I think was the hardest part!

Using Adobe’s Source Code Pro in Vim


Source Code Pro
is a really nice font for programming, even though it comes from Adobe. I recently banged my head into a wall of too many inconsistent answers on the internet on how to use it inside gVim/MacVim. That’s why I’m just putting down the solution that finally workd for me. Continue reading “Using Adobe’s Source Code Pro in Vim”

Why Shells are Awesome

I’m a developer, I think shells are awesome. When I was in ninth grade I took a class in typing with the 10-finger system, which was a full year of typing dull things into an incredibly old DOS interface.
I took these classes, because I had a couple of those Linux magazines and the authors occasionally brought up how much faster things were if you just could use your keyboard, instead of your mouse. My problem was, that I couldn’t type perfectly without looking at the keyboard. Continue reading “Why Shells are Awesome”