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

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

  • Best score: 12
  • Best player score: 13
  • Position: #737 / 1585
  • Number of attempts: 4
Interweave two blocks of text - 630 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: #206 / 211
  • Number of attempts: 3
VimGolfNight - 531 entries

Based on "The name of the game".

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

Oops.

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

Indent each line with <line number> whitespaces.

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

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #295 / 440
  • Number of attempts: 1
Recursively Palindrome - 239 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 30
  • Position: #53 / 73
  • Number of attempts: 2
Switch function arguments - 2064 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #136 / 647
  • Number of attempts: 6
Append semicolon after expressions - 1002 entries

Some lines need the semicolon, some don't.

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

Create a multiplication table.

  • Best score: 31
  • Best player score: 104
  • Position: #53 / 63
  • Number of attempts: 1
Sort the cardinal numbers - 293 entries

Maybe a simple challenge.

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

Same class but reverse!

  • Best score: 80
  • Best player score: 130
  • Position: #25 / 38
  • Number of attempts: 2
Alphabetize the directory - 283 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 32
  • Position: #38 / 99
  • Number of attempts: 4
Complete the hex array data - 192 entries

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

  • Best score: 23
  • Best player score: 27
  • Position: #33 / 72
  • Number of attempts: 2
Case preserving word replacement - 453 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: #94 / 179
  • Number of attempts: 2
imports alignment (python) - 661 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 20
  • Position: #78 / 194
  • Number of attempts: 6
HTML to Haml - 842 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 39
  • Position: #102 / 202
  • Number of attempts: 3
expand a list comprehension (python) - 301 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: #35 / 106
  • Number of attempts: 1
Numbering a List - 1855 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Position: #461 / 638
  • Number of attempts: 2
Simple text editing with Vim - 12230 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 / 3567
  • Number of attempts: 9
Christopher Erin
Twitter:

Hashrocket.

entered into 20 challenges

contributed 0 challenges