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: 33
  • Position: #6008 / 7278
  • Number of attempts: 1
Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1040 / 1241
  • Number of attempts: 1
One number per line - 18395 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3429 / 3793
  • Number of attempts: 1
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: 21
  • Position: #338 / 417
  • Number of attempts: 1
Copy three lines - 2801 entries

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

  • Best score: 13
  • Best player score: 22
  • Position: #487 / 625
  • Number of attempts: 1
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: 18
  • Position: #638 / 729
  • Number of attempts: 1
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2559 / 4114
  • Number of attempts: 1
Remember VimGolf Rules ! - 235 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #70 / 127
  • Number of attempts: 1
Vice versa - 7541 entries

Little role switching.

  • Best score: 12
  • Best player score: 24
  • Position: #1907 / 2049
  • Number of attempts: 1
Angular naming conventions - 283 entries

In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!

  • Best score: 18
  • Best player score: 23
  • Position: #87 / 110
  • Number of attempts: 1
Condensed Cases - 758 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 17
  • Position: #194 / 231
  • Number of attempts: 1
I forgot quotes - 15749 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3201 / 4117
  • Number of attempts: 1
-a-b-c- - 3122 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #975 / 1113
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #3108 / 3638
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3444 / 3919
  • Number of attempts: 1
Remove noise from HTTP log - 665 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 17
  • Position: #224 / 262
  • Number of attempts: 2
Make it more readable - 1905 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 18
  • Position: #520 / 625
  • Number of attempts: 1
phucvin
Twitter:

game developer

entered into 17 challenges

contributed 0 challenges