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

Generate a very basic Python constructor (fixed) - 1277 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 45
  • Position: #150 / 274
  • Number of attempts: 3
Put a newline after every 10 lines in vim - 1664 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #106 / 559
  • Number of attempts: 3
Switch function arguments - 2179 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #336 / 673
  • Number of attempts: 4
Reformat some Python - 627 entries

Fix some very bizarrely laid-out code.

  • Best score: 34
  • Best player score: 40
  • Position: #99 / 240
  • Number of attempts: 1
Change the content of a string - 1686 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 22
  • Position: #213 / 621
  • Number of attempts: 4
Whitespace, empty lines and tabs - 3814 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 23
  • Position: #375 / 820
  • Number of attempts: 2
Simple text editing with Vim - 13183 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1972 / 3789
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7309 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 33
  • Position: #274 / 1805
  • Number of attempts: 8
FeAx
Twitter:

entered into 8 challenges

contributed 0 challenges