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:


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”