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

Delete the last function argument in python. - 420 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #21 / 152
  • Number of attempts: 4
Flip All Bits - 272 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: 26
  • Best player score: 55
  • Position: #71 / 92
  • Number of attempts: 1
From brakets to parens - 1228 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 / 272
  • Number of attempts: 9
Change class fields from camel case to snake case - 643 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #103 / 147
  • Number of attempts: 5
Change class fields from snake case to camel case - 316 entries

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

  • Best score: 13
  • Best player score: 19
  • Position: #99 / 119
  • Number of attempts: 5
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: 29
  • Position: #183 / 303
  • Number of attempts: 2
Rearrange array to one line - 859 entries

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

  • Best score: 13
  • Best player score: 34
  • Position: #174 / 201
  • Number of attempts: 2
Deleting text - 337 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #78 / 108
  • Number of attempts: 2
New teacher - 1501 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 25
  • Position: #158 / 314
  • Number of attempts: 7
simple replacements - 1873 entries

The goal is to see the replacement commands in action.

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

AaAaAaA

  • Best score: 12
  • Best player score: 16
  • Position: #417 / 710
  • Number of attempts: 4
Convert Application Output to CSV - 223 entries

Change the application output to comma-separated values

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #762 / 1666
  • Number of attempts: 7
underscore_to_camelCase - 187 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 / 84
  • Number of attempts: 5
Space out the alphabet - 1690 entries

Put 3 spaces between adjacent letters.

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

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 37
  • Position: #304 / 306
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 440 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 / 197
  • Number of attempts: 9
lamb had a little Mary - 655 entries

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

  • Best score: 16
  • Best player score: 44
  • Position: #162 / 178
  • Number of attempts: 2
Make it more readable - 2028 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #209 / 656
  • Number of attempts: 6
cyan12green
Github:

entered into 19 challenges

contributed 0 challenges