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

Two become one - 691 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 35
  • Number of attempts: 2
Going underground.... - 298 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 34
  • Number of attempts: 3
attr_aligner - 3194 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 34
  • Number of attempts: 1
remove all lines in first part - 149 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

  • Best score: 13
  • Best player score: 22
  • Number of attempts: 1
Simple text editing with Vim - 10892 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 4
switch variable - 4537 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 2
Letter case trickery - 1454 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 12
  • Number of attempts: 1
Mess in revision history - 1015 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 40
  • Number of attempts: 1
Words in parens - 11783 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 21
  • Number of attempts: 1
Just the middle - 10076 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9958 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 1
Extract argument from function - 2103 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 15
  • Number of attempts: 1
Make it more readable - 1785 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 1
replacing each line of a block selection - 2657 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 22
  • Number of attempts: 2
quotes inside quotes - 2909 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 2
Jeff Parent
Twitter:

Software Engineer living in Iowa, working in Embedded Linux, Communications and all things nerdy.

entered into 15 challenges

contributed 0 challenges