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 - 32972 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 / 7278
  • Number of attempts: 5
One number per line - 18395 entries

Just give me the numbers.

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

This line is too long, split it.

  • Best score: 15
  • Best player score: 16
  • Position: #218 / 623
  • Number of attempts: 2
From argument to object - 1262 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 / 417
  • Number of attempts: 3
Copy three lines - 2811 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #228 / 626
  • Number of attempts: 5
Extract argument from function - 2218 entries

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

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

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

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2408 / 4114
  • Number of attempts: 2
Team names - 1780 entries

The team names are misspelled.

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

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #111 / 243
  • Number of attempts: 3
I forgot quotes - 15749 entries

Oops.

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

https://t.co/p5OAAiYUP9

entered into 11 challenges

contributed 0 challenges