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 - 4534 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #687 / 1507
  • Number of attempts: 4
Interweave two blocks of text - 530 entries

Suppose you've got data on a list of things from multiple sources. They're all in separate chunks, so how might you create a tabular output?

  • Best score: 15
  • Best player score: 30
  • Position: #192 / 196
  • Number of attempts: 3
VimGolfNight - 482 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #246 / 322
  • Number of attempts: 6
I forgot quotes - 15636 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #763 / 4094
  • Number of attempts: 7
Stairs Indenting - 387 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 12
  • Position: #15 / 176
  • Number of attempts: 3
Let's play some Ivmgolf - 979 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #282 / 407
  • Number of attempts: 1
Recursively Palindrome - 230 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 30
  • Position: #50 / 69
  • Number of attempts: 2
Switch function arguments - 1933 entries

How to switch two arguments of a function.

  • Best score: 3
  • Best player score: 11
  • Position: #137 / 617
  • Number of attempts: 6
Append semicolon after expressions - 912 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #103 / 374
  • Number of attempts: 5
Multiplication table. - 183 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 104
  • Position: #50 / 60
  • Number of attempts: 1
Sort the cardinal numbers - 240 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Position: #83 / 132
  • Number of attempts: 1
PHP <--> Java class conversion Part 2 - 84 entries

Same class but reverse!

  • Best score: 80
  • Best player score: 130
  • Position: #24 / 36
  • Number of attempts: 2
Alphabetize the directory - 261 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 32
  • Position: #35 / 95
  • Number of attempts: 4
Complete the hex array data - 188 entries

Do not use external tools(e.g. tac, seq) [My interpretation of Rule #7]

  • Best score: 23
  • Best player score: 27
  • Position: #33 / 71
  • Number of attempts: 2
Case preserving word replacement - 397 entries

Half way through my project, my people turned into dogs. Now I have to change everything in my source.

  • Best score: 19
  • Best player score: 21
  • Position: #85 / 167
  • Number of attempts: 2
imports alignment (python) - 586 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 20
  • Position: #72 / 181
  • Number of attempts: 6
HTML to Haml - 775 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 39
  • Position: #97 / 192
  • Number of attempts: 3
expand a list comprehension (python) - 275 entries

Please show your way to convert a list comprehension in python to an ordinary for-loop expression!

  • Best score: 42
  • Best player score: 48
  • Position: #33 / 102
  • Number of attempts: 1
Numbering a List - 1774 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #435 / 609
  • Number of attempts: 2
Simple text editing with Vim - 11354 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #30 / 3335
  • Number of attempts: 9
Christopher Erin
Twitter:

Hashrocket.

entered into 20 challenges

contributed 0 challenges