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. - 1083 entries

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

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

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

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

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

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

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 19
  • Position: #23 / 187
  • Number of attempts: 7
Rearrange array to single level - 1832 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 / 308
  • Number of attempts: 15
Copy punctuation - 760 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 / 188
  • Number of attempts: 14
months to html list items - 1161 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 23
  • Position: #57 / 314
  • Number of attempts: 5
Rural Post - 4604 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #218 / 1126
  • Number of attempts: 6
Satisfy the go linter - 2504 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: #239 / 509
  • Number of attempts: 5
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: 22
  • Position: #2432 / 7520
  • Number of attempts: 9
Swap values - 4704 entries

Well, swap the values...

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

Just give me the numbers.

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

easy stuff

  • Best score: 7
  • Best player score: 9
  • Position: #517 / 1189
  • Number of attempts: 4
Com(m)a Trouble - 3992 entries

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

  • Best score: 7
  • Best player score: 12
  • Position: #191 / 910
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

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

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

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

entered into 17 challenges

contributed 0 challenges