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

Search and Replace 0 - 5159 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 17
  • Position: #1315 / 1674
  • Number of attempts: 1
VimGolfNight - 602 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #72 / 356
  • Number of attempts: 1
Do you demand a shrubbery? - 1207 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 17
  • Position: #107 / 309
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #396 / 3716
  • Number of attempts: 4
Letter case trickery - 1686 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
  • Position: #306 / 525
  • Number of attempts: 1
quotes inside quotes - 3202 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: 17
  • Position: #732 / 1093
  • Number of attempts: 2
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2573 / 3991
  • Number of attempts: 3
Delete unwanted lines - 450 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #81 / 236
  • Number of attempts: 1
XML to JSON - 49 entries

Convert this xml file into json.

  • Best score: 75
  • Best player score: 288
  • Position: #21 / 21
  • Number of attempts: 1
Let's play some Ivmgolf - 1162 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #264 / 459
  • Number of attempts: 7
replacing each line of a block selection - 3067 entries

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

  • Best score: 18
  • Best player score: 32
  • Position: #702 / 789
  • Number of attempts: 1
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1618 / 1764
  • Number of attempts: 1
Make it more readable - 2039 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 16
  • Position: #375 / 658
  • Number of attempts: 1
CSV to JSON - 178 entries

A search for shortest vimissh way to convert CSV to JSON.

  • Best score: 56
  • Best player score: 131
  • Position: #46 / 67
  • Number of attempts: 1
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 16
  • Position: #2294 / 3902
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7681 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 49
  • Position: #1446 / 1889
  • Number of attempts: 2
George GZ Zakhour
Twitter:

Programmer, geek and an @AUB_Lebanon CS student, passionate about Math, Physics, President of AUB Free Software Club.

entered into 16 challenges

contributed 0 challenges