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 - 33742 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: #846 / 7447
  • Number of attempts: 5
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #427 / 3875
  • Number of attempts: 2
Split line with dots - 2154 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Position: #220 / 635
  • Number of attempts: 2
From argument to object - 1513 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 17
  • Position: #89 / 460
  • Number of attempts: 3
Copy three lines - 2875 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 15
  • Position: #231 / 641
  • Number of attempts: 5
Extract argument from function - 2364 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #187 / 755
  • Number of attempts: 3
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #488 / 1631
  • Number of attempts: 4
Just the middle - 11495 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2440 / 4213
  • Number of attempts: 2
Team names - 1841 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #146 / 589
  • Number of attempts: 3
Order and join - 985 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #120 / 260
  • Number of attempts: 3
I forgot quotes - 16038 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #582 / 4192
  • Number of attempts: 7
Ernesto Barros
Twitter:

https://t.co/p5OAAiYUP9

entered into 11 challenges

contributed 0 challenges