People keep telling me to get with the times, and stop using vim as my primary text editor, but today I found a nice easy way to fast-find something. All you need to do is move the cursor over the piece of text you want to find and press Shift + 8; when you are not in INSERT mode.
Today marks the 20th anniversary of Vim, one of the most powerful and versatile command line text editors around. I’ve been a happy Vim user since I was at Uni. It’s installed on almost all every server I’ve used, and can be customised with lots of little scripts making it as useful as any GUI editor.
This week I was trying to locate which files in the codebase use a specific class method while debugging some code. This method however has been used a lot, when I say a lot I mean 10 to 20 times per file, and in lots of templates. This is mainly because it is a template helper to generate complex links within the page. Anyway, a simple use of grep wasn’t all that much help, so I refreshed my memory on how to use sed to make the output a little more readable.
Today I found one of the nicest Vi Help Sheets I’ve seen in a long while. I came by this via Smashing Magazine and just had to include it on here. Most people who know me know I’m one of those odd developers would still does the bulk of their development work using VIm as I find the speed it offers unparalleled. Continue reading Vi Help Sheet (Liquidicity)