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 - 34031 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: #6183 / 7520
  • Number of attempts: 1
Swap values - 4704 entries

Well, swap the values...

  • Best score: 6
  • Best player score: 16
  • Position: #1081 / 1294
  • Number of attempts: 1
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3517 / 3907
  • Number of attempts: 1
From argument to object - 1566 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: #386 / 471
  • Number of attempts: 1
Copy three lines - 2923 entries

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

  • Best score: 10
  • Best player score: 22
  • Position: #502 / 647
  • Number of attempts: 1
Extract argument from function - 2430 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #678 / 774
  • Number of attempts: 1
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2604 / 4262
  • Number of attempts: 1
Remember VimGolf Rules ! - 279 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #76 / 149
  • Number of attempts: 1
Vice versa - 8021 entries

Little role switching.

  • Best score: 12
  • Best player score: 24
  • Position: #1999 / 2158
  • Number of attempts: 1
Angular naming conventions - 359 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: #100 / 124
  • Number of attempts: 1
Condensed Cases - 829 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: #210 / 255
  • Number of attempts: 1
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3286 / 4229
  • Number of attempts: 1
-a-b-c- - 3243 entries

Put hyphens everywhere.

  • Best score: 6
  • Best player score: 17
  • Position: #1007 / 1148
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #3177 / 3717
  • Number of attempts: 1
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3507 / 3995
  • Number of attempts: 1
Remove noise from HTTP log - 760 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: #239 / 282
  • Number of attempts: 2
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

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

game developer

entered into 17 challenges

contributed 0 challenges