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 - 32963 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: 38
  • Position: #6856 / 7277
  • Number of attempts: 2
One number per line - 18395 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 28
  • Position: #3514 / 3793
  • Number of attempts: 1
Add semicolons - 10545 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 20
  • Position: #2729 / 2989
  • Number of attempts: 1
Box it - 7682 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 43
  • Position: #1703 / 1836
  • Number of attempts: 1
Search and Replace 0 - 4681 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #630 / 1550
  • Number of attempts: 3
underscore_to_camelCase - 148 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 22
  • Position: #67 / 75
  • Number of attempts: 2
Change part of a function name in multiple occurrences - 604 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 16
  • Position: #144 / 192
  • Number of attempts: 2
Happy TvvO - 392 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 15
  • Position: #189 / 195
  • Number of attempts: 1
learn vim in short time - 219 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 9
  • Position: #139 / 150
  • Number of attempts: 1
Where should I put the Newline? - 845 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #210 / 422
  • Number of attempts: 3
quotes inside quotes - 3030 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: 18
  • Position: #952 / 1045
  • Number of attempts: 2
Enumerate words - 235 entries

Enumerate the unique words in order.

  • Best score: 23
  • Best player score: 35
  • Position: #80 / 85
  • Number of attempts: 2
abcd > a b c d - 263 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #176 / 207
  • Number of attempts: 2
The meaning - 523 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #291 / 338
  • Number of attempts: 2
Context insensitive completion 0 - 474 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 7
  • Best player score: 9
  • Position: #188 / 223
  • Number of attempts: 2
Jan Balangue
Twitter:

entered into 15 challenges

contributed 0 challenges