Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put [challenge ID]

Played Challenges

Flatten repo - 22 entries

For each git repository (<project> tag) translate name attribute to flatten directory structure. Add path attribute if missing (because checkout hierarchy must be kept). #xml

  • Best score: 43
  • Best player score: 96
  • Number of attempts: 1
One number per line - 9664 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 3
From argument to object - 955 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 18
  • Number of attempts: 3
Split line with dots - 1648 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 2
Simple, Practical, and Common - 19708 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 13
  • Best player score: 22
  • Number of attempts: 5
Collect List - 3005 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
I forgot quotes - 9642 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 4
Paragraph breaks - 376 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 3
Every other line - 1690 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Number of attempts: 6
Vice versa - 5076 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
Hello ${world} - 192 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 30
  • Number of attempts: 2
Swap values - 2957 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 8842 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Copy three lines - 1549 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 5
Start coding format - 114 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 23
  • Number of attempts: 1
Just the middle - 8223 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
Words in parens - 10118 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
Igor Czerwinski
Twitter:

Frontend developer at @fundingcircle. Ex-@lastfm. Interested in functional JavaScript, web a11y and bad action movies.

entered into 17 challenges

contributed 0 challenges