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

Simple, Practical, and Common - 33483 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #1363 / 7384
  • Number of attempts: 7
One number per line - 18673 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1726 / 3852
  • Number of attempts: 6
Add semicolons - 10831 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1136 / 3055
  • Number of attempts: 2
Split line with dots - 2131 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 23
  • Position: #477 / 633
  • Number of attempts: 1
Word Blender - 147 entries

The insides of long words seem to have been run through the blender. Can you fix this famous tale, brave knight?

  • Best score: 28
  • Best player score: 57
  • Position: #37 / 56
  • Number of attempts: 2
Box it - 7849 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 28
  • Position: #1236 / 1870
  • Number of attempts: 3
Search and Replace 0 - 4851 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #91 / 1604
  • Number of attempts: 3
Just the middle - 11380 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1053 / 4174
  • Number of attempts: 4
Vice versa - 7865 entries

Little role switching.

  • Best score: 12
  • Best player score: 21
  • Position: #1882 / 2114
  • Number of attempts: 2
Cartesian product - 222 entries

{1,2,3,4,5} X {1,2,3,4,5}

  • Best score: 24
  • Best player score: 36
  • Position: #61 / 93
  • Number of attempts: 11
A HAPPY NEW YEAR 2014 ! - 10652 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 16
  • Position: #3276 / 3677
  • Number of attempts: 1
Words in parens - 12868 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 18
  • Position: #2877 / 3950
  • Number of attempts: 1
Generate Fibonacci Numbers - 263 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 24
  • Position: #69 / 98
  • Number of attempts: 1
Rotating Philosophers Problem - 392 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 30
  • Position: #49 / 165
  • Number of attempts: 3
Before there was Farmville... - 98 entries

There was old MacDonald. For my toddler. The first Vim sing-a-long?

  • Best score: 156
  • Best player score: 244
  • Position: #40 / 48
  • Number of attempts: 1
HTML to Haml - 843 entries

Help convert this HTML page to Haml.

  • Best score: 23
  • Best player score: 31
  • Position: #67 / 203
  • Number of attempts: 6
Overall Vimgolf Rank - 171 entries

Suppose you are trying to figure out what your overall rank is at Vimgolf(the sum of all the ranks you got), and as a Vim ninja you decided to use Vim to do the job. Your solution should work for every Vimgolf profile page(The actual input file for this challenge is my Vimgolf profile page). So, direct answer insertion is considered cheating.

  • Best score: 23
  • Best player score: 25
  • Position: #23 / 58
  • Number of attempts: 3
Getters & Setters: Java - 206 entries

Boilerplate getters & setters - it's a tedious fact of life in Java, and probably the only thing that still pulls me back to an IDE. Perhaps someone knows a fast, pure vim way...

  • Best score: 89
  • Best player score: 106
  • Position: #19 / 57
  • Number of attempts: 2
CSV to JSON - 173 entries

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

  • Best score: 56
  • Best player score: 93
  • Position: #26 / 66
  • Number of attempts: 5
Shebangs for all - 1917 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 13
  • Position: #173 / 502
  • Number of attempts: 5
Almost encrypted - 199 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #41 / 145
  • Number of attempts: 2
Remember FizzBuzz? - 686 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 84
  • Position: #161 / 184
  • Number of attempts: 2
Get rid of html tags - 378 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 17
  • Position: #60 / 222
  • Number of attempts: 1
Karel Vervaeke
Twitter:

entered into 23 challenges

contributed 0 challenges