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

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 20
  • Position: #32 / 169
  • Number of attempts: 1
Delete the last function argument in python. - 473 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #14 / 172
  • Number of attempts: 4
Flip All Bits - 299 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: 26
  • Position: #3 / 97
  • Number of attempts: 14
Fix the Scala Method - 350 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 22
  • Position: #49 / 117
  • Number of attempts: 11
New teacher - 1501 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 26
  • Position: #175 / 314
  • Number of attempts: 6
Surround the 'z' character with brackets, quotes, and print as formatted string. - 580 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #248 / 326
  • Number of attempts: 2
prepend * to every non-blank line - 6388 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #771 / 1559
  • Number of attempts: 1
Search and Replace 0 - 5115 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1107 / 1667
  • Number of attempts: 5
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3243 / 4246
  • Number of attempts: 2
Order and join - 1009 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Position: #148 / 263
  • Number of attempts: 13
ASCII Art - 90 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #36 / 56
  • Number of attempts: 1
Python: Lots of function arguments - 128 entries

The function definition is too long for one line. The modeline helps you with some typical Python indent settings.

  • Best score: 6
  • Best player score: 6
  • Position: #3 / 52
  • Number of attempts: 4
The holy-grail may help - 394 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 25
  • Position: #214 / 218
  • Number of attempts: 2
Shebangs for all - 2090 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 11
  • Position: #81 / 529
  • Number of attempts: 13
Get rid of html tags - 455 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 18
  • Position: #161 / 258
  • Number of attempts: 2
Simple text editing with Vim - 13526 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2113 / 3879
  • Number of attempts: 6

Contributed Challenges

Delete the last function argument in python. - 473 entries

Delete the last function argument in this python script.

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

Swap function parameters and delete all comments in python.

skywalkerwhack
Github:

entered into 16 challenges

contributed 2 challenges