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

Swap function parameters and delete all comments in python. - 335 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 19
  • Position: #4 / 94
  • Number of attempts: 9
Delete the last function argument in python. - 292 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #19 / 111
  • Number of attempts: 3
Change class fields from camel case to snake case - 630 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 18
  • Position: #47 / 144
  • Number of attempts: 7
Change class fields from snake case to camel case - 315 entries

Change the class fields in this Scala class from snake case to camel case

  • Best score: 13
  • Best player score: 13
  • Position: #72 / 118
  • Number of attempts: 7
Remove adjacent duplicates - 705 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 19
  • Position: #23 / 175
  • Number of attempts: 7
Rearrange array to single level - 1802 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 14
  • Position: #21 / 303
  • Number of attempts: 15
Copy punctuation - 723 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 19
  • Position: #21 / 176
  • Number of attempts: 14
months to html list items - 1135 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 23
  • Position: #56 / 307
  • Number of attempts: 5
Rural Post - 4593 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #217 / 1120
  • Number of attempts: 6
Satisfy the go linter - 2482 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 23
  • Position: #237 / 494
  • Number of attempts: 5
Simple, Practical, and Common - 33964 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: #2432 / 7500
  • Number of attempts: 9
Swap values - 4701 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #364 / 1290
  • Number of attempts: 6
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #778 / 3898
  • Number of attempts: 11
remove lines containing the word "reader" - 3643 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #516 / 1181
  • Number of attempts: 4
Com(m)a Trouble - 3988 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Position: #190 / 908
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1629 / 3711
  • Number of attempts: 2
Simple text editing with Vim - 13509 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2114 / 3874
  • Number of attempts: 10
Adrian
Github:

entered into 17 challenges

contributed 0 challenges