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

HTML to Haml - 719 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 39
  • Number of attempts: 3
Recursively Palindrome - 220 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 30
  • Number of attempts: 2
Complete the hex array data - 174 entries

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

  • Best score: 23
  • Best player score: 27
  • Number of attempts: 2
Case preserving word replacement - 385 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
  • Number of attempts: 2
Switch function arguments - 1835 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
Append semicolon after expressions - 852 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 5
expand a list comprehension (python) - 240 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
  • Number of attempts: 1
Let's play some Ivmgolf - 909 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 1
I forgot quotes - 11698 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Stairs Indenting - 360 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
VimGolfNight - 458 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
Interweave two blocks of text - 486 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
  • Number of attempts: 3
Simple text editing with Vim - 10385 entries

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

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 9
PHP <--> Java class conversion Part 2 - 83 entries

Same class but reverse!

  • Best score: 80
  • Best player score: 130
  • Number of attempts: 2
Search and Replace 0 - 4091 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 4
imports alignment (python) - 577 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 20
  • Number of attempts: 6
Multiplication table. - 171 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 104
  • Number of attempts: 1
Alphabetize the directory - 252 entries

Put the contacts and their information in alphabetical order.

  • Best score: 30
  • Best player score: 32
  • Number of attempts: 4
Numbering a List - 1727 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 24
  • Number of attempts: 2
Sort the cardinal numbers - 215 entries

Maybe a simple challenge.

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 1
Christopher Erin
Twitter:

Hashrocket.

entered into 20 challenges

contributed 0 challenges