Creating My First Vim Plugin

Source and test files in split panes

Why would anyone ever...?

While I'm at work or hacking away at home, I spend most of my development time in Vim.

I tend to edit a lot of PHP classes and the associated test files at the same time...but finding the files and manually opening them, sucks.

It takes some mental energy to find the file and open it, which can interrupt your train of thought. I do use the excellent ctrlp.vim plugin, but the codebase I work in contains way too many files, making the autocomplete kind of awkward to use at times.

I've been thinking of mapping some command to open the related file but have heard bad things about it.

Until I came across this: Optimize Your TDD Workflow by Writing Vim Plugins

Read the rest of this entry

How to Grunt

Grunt: The JavaScript Task Runner

Introduction

I had the pleasure of attending the second day of jQueryTO this past weekend and had a great time.

It was pretty awesome to see the presentations given by people like Paul Irish, Tim Branyen and Derick Bailey. I've read a lot about the things they've done to try and advance the web and educate people, so it was pretty cool to see and hear them live. I saw Addy Osmani in the crowd, although I missed his keynote on the first day.

One presentation that got me itching to get back to my terminal window was Dan Heberden's presentation on Grunt.

Read the rest of this entry

Site Redesign

Inspired by Twitter's Bootstrap, I bring to you the new version of Pyjama Coder!

In addition to the CSS revamp, you will notice a few other things have changed.

  • the homepage now lists excerpts from up to 5 posts and is paginated
  • there is a sticky navigation bar at the top of the page
  • the old post listing has been moved to a blog page
  • the site is responsive for widths of: 480, 768, 980, 1200, and 1200+

There are also a few fun css additions.

Read the rest of this entry

©2018 Donald Chea, Pyjama Coder