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

Java to JavaScript - 152 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 80
  • Position: #20 / 40
  • Number of attempts: 2
Migrated to Postgres! - 215 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 36
  • Position: #71 / 85
  • Number of attempts: 1
Inverting Lines - 1296 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #150 / 363
  • Number of attempts: 1
Generate a very basic Python constructor - 268 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 56
  • Position: #48 / 74
  • Number of attempts: 3
Python dataclasses - 650 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 20
  • Position: #64 / 169
  • Number of attempts: 11
Making 3 line function a one liner. - 161 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #81 / 105
  • Number of attempts: 1
Multiline to Single Line - 522 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #179 / 235
  • Number of attempts: 1
Add string initializers to an enum - 765 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 22
  • Position: #89 / 226
  • Number of attempts: 11
Search and Replace 0 - 4651 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #687 / 1541
  • Number of attempts: 3
Flip the bit - 108 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #33 / 64
  • Number of attempts: 4
Remember VimGolf Rules ! - 235 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 8
  • Position: #118 / 127
  • Number of attempts: 3
Join 'em - 228 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #10 / 134
  • Number of attempts: 1
Draw the Go board - 138 entries

which is a 19×19 lines board. Here we use ascii characters only for simplicity. See diff file to get a sense. (See also http://en.wikipedia.org/wiki/Go_(game))

  • Best score: 50
  • Best player score: 74
  • Position: #34 / 47
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1508 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Position: #120 / 424
  • Number of attempts: 9
Ugly spreadsheet copy/paste to CSV - 840 entries

convert an ugly spreadsheet copy/paste into a CSV format.

  • Best score: 19
  • Best player score: 50
  • Position: #143 / 173
  • Number of attempts: 2
Simple text editing with Vim - 11624 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #665 / 3410
  • Number of attempts: 2
JVIM
Twitter:

entered into 16 challenges

contributed 0 challenges