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

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #14 / 22
  • Number of attempts: 4
Flip All Bits - 54 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 / 19
  • Number of attempts: 14
Fix the Scala Method - 332 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 / 109
  • Number of attempts: 11
prepend * to every non-blank line - 6381 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #770 / 1558
  • Number of attempts: 1
Search and Replace 0 - 5074 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1101 / 1653
  • Number of attempts: 5
Just the middle - 11566 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3242 / 4238
  • 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 - 123 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 / 51
  • Number of attempts: 4
The holy-grail may help - 392 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #213 / 217
  • Number of attempts: 1
Shebangs for all - 2084 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 / 527
  • Number of attempts: 13
Get rid of html tags - 450 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #158 / 255
  • Number of attempts: 2
Simple text editing with Vim - 13466 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2111 / 3863
  • Number of attempts: 6

Contributed Challenges

Delete the last function argument in python. - 44 entries

Delete the last function argument in this python script.

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

Swap function parameters and delete all comments in python.

skywalkerwhack
Github:

entered into 14 challenges

contributed 2 challenges