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

Filename Flip - 196 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

  • Best score: 15
  • Best player score: 20
  • Position: #41 / 70
  • Number of attempts: 3
Delete the last function argument in python. - 729 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #21 / 261
  • Number of attempts: 4
Flip All Bits - 503 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 24
  • Best player score: 55
  • Position: #114 / 144
  • Number of attempts: 1
From brakets to parens - 1356 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 25
  • Position: #59 / 309
  • Number of attempts: 9
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: 30
  • Position: #110 / 160
  • Number of attempts: 5
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: 19
  • Position: #105 / 127
  • Number of attempts: 5
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: 29
  • Position: #186 / 308
  • Number of attempts: 2
Rearrange array to one line - 907 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 34
  • Position: #182 / 209
  • Number of attempts: 2
Deleting text - 360 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #81 / 117
  • Number of attempts: 2
New teacher - 1534 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #160 / 322
  • Number of attempts: 7
simple replacements - 1910 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #146 / 417
  • Number of attempts: 11
Every other line - 2952 entries

AaAaAaA

  • Best score: 7
  • Best player score: 16
  • Position: #419 / 713
  • Number of attempts: 4
Convert Application Output to CSV - 233 entries

Change the application output to comma-separated values

  • Best score: 17
  • Best player score: 17
  • Position: #40 / 61
  • Number of attempts: 9
Search and Replace 0 - 5170 entries

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

  • Best score: 7
  • Best player score: 12
  • Position: #763 / 1680
  • Number of attempts: 7
underscore_to_camelCase - 197 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 14
  • Position: #34 / 86
  • Number of attempts: 5
Space out the alphabet - 1700 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 15
  • Position: #115 / 460
  • Number of attempts: 10
Do you demand a shrubbery? - 1208 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 37
  • Position: #308 / 310
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 464 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 8
  • Position: #9 / 201
  • Number of attempts: 9
lamb had a little Mary - 661 entries

"Mary" and "lamb" are swapped. Unswap them. Fast as you can.

  • Best score: 16
  • Best player score: 44
  • Position: #163 / 181
  • 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: 14
  • Position: #210 / 659
  • Number of attempts: 6
Cyan Green
Github:

entered into 20 challenges

contributed 0 challenges