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

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #14 / 87
  • Number of attempts: 4
Flip All Bits - 167 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 / 51
  • Number of attempts: 14
Fix the Scala Method - 340 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 / 113
  • Number of attempts: 11
New teacher - 1486 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 26
  • Position: #172 / 311
  • 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 - 5098 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1102 / 1661
  • Number of attempts: 5
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3243 / 4240
  • 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 - 393 entries

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

  • Best score: 16
  • Best player score: 25
  • Position: #213 / 217
  • 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 - 451 entries

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

  • Best score: 12
  • Best player score: 18
  • Position: #159 / 256
  • Number of attempts: 2
Simple text editing with Vim - 13502 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 / 3872
  • Number of attempts: 6

Contributed Challenges

Delete the last function argument in python. - 226 entries

Delete the last function argument in this python script.

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

Swap function parameters and delete all comments in python.

skywalkerwhack
Github:

entered into 16 challenges

contributed 2 challenges