There are 12 articles tagged as "vim"

Delete lines containing a pattern in vim

on January 08, 2020. in Software, Development. A 1 minute read.

Today I had to delete all lines from a CSV file where the last column has a 1:

Making it easier to blog

on January 03, 2020. in Blablabla. A 2 minute read.

2019 was a not so great year for my blogging. 7 posts in total. There are multiple reasons for that, all the regular stuff like “I didn’t find the time” and “Nothing to blog about”.

Continue reading Making it easier to blog...

Smarter tag search in Vim

on November 01, 2017. in Development, Software. A 2 minute read.

As part of my Vim setup for PHP development, I use the vim-php-namespace plugin to add use statements in my PHP code.

Continue reading Smarter tag search in Vim...

Current Vim setup for PHP development

on February 10, 2017. in Development, Programming. A 4 minute read.

I made some changes to my Vim setup for PHP development recently, so it’s time to write it all down. I’m more than sure that I’ll break it soon and won’t be able to remember all the things I did to have the current setup.

Search and replace in visual selection in Vim

on January 23, 2017. in Software, Blablabla. A 1 minute read.

The search and replace feature is very powerful in Vim. Just do a :help :s to see all the things it can do.

Force Python version in Vim

on January 12, 2017. in Development, Software. A 2 minute read.

Vim can be compiled with Python support. Vim can be compiled with both Python 2 and Python 3 support.

Continue reading Force Python version in Vim...

Editing Vim macros

on December 15, 2016. in Development, Software. A 2 minute read.

Vim macros are a powerful thing — they let us record keystrokes and play them back later. These macros are recorded to named registers.

Continue reading Editing Vim macros...

Import custom Python modules in Vim plugins

on June 16, 2016. in Programming, Development. A 2 minute read.

This took me a while to figure out so I’m writing it down for future self and anyone else who needs it.

Vim Hugo helper

on March 25, 2016. in Programming, Development. A 2 minute read.

I think I just wrote my first Vim plugin. OK, it’s more a bunch of Vim functions slapped together than an actual plugin, but gotta start somewhere, right?

Continue reading Vim Hugo helper...

Tags for PHP in Vim

on March 09, 2016. in Software, Programming, Development. A 2 minute read.

One thing I was missing for a long time in Vim is to be able to “jump to definition” in an easy and painless way.

Continue reading Tags for PHP in Vim...