I took a detour for a good chunk of the year to VSCode, but as always I missed the keyboard focus of Vim so I’m back there.

One thing I did regularly in VSCode was to limit a search for a string to a specific filetype. I didn’t know how to do that in Vim until today.

ACK $term --type=php will limit your search term to files with the .php extension.

You can find my WordPress specific vim configuration here on Github. I need to dig back into it and update it because I’m a Vim user.

You can find the full documentation on ACK here.

Posted by Curtis McHale

Web developer specializing in membership and ecommerce sites. I like to ride my bicycle.