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

hello-world-vimgolf - 1394 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #30 / 399
  • Number of attempts: 5
Contribute to keyboard mashing - 582 entries

Speak in tongues

  • Best score: 17
  • Best player score: 18
  • Position: #48 / 178
  • Number of attempts: 4
Fill in the chess board - 488 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 19
  • Position: #9 / 105
  • Number of attempts: 11
Learn to ask for :help - 365 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 21
  • Position: #13 / 82
  • Number of attempts: 10
Plotting some variables in python - 1119 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 37
  • Position: #65 / 237
  • Number of attempts: 9
Transpose a python matrix - 523 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #12 / 103
  • Number of attempts: 18
Create a diamond comment - 215 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 53
  • Position: #37 / 52
  • Number of attempts: 4
Lowercase first characters - 323 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 34
  • Position: #29 / 117
  • Number of attempts: 5
simple replacements - 1006 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #34 / 227
  • Number of attempts: 6
Satisfy the go linter - 1996 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 20
  • Position: #113 / 400
  • Number of attempts: 6
Add quotes to ansible playbook - 775 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 8
  • Position: #52 / 245
  • Number of attempts: 3
xrandr outputs and dashes - 587 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #124 / 191
  • Number of attempts: 3
Search and Replace 0 - 4640 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #683 / 1537
  • Number of attempts: 3
Sort and add attributes - 1171 entries

Sort the states and add the attribute country to each record.

  • Best score: 33
  • Best player score: 40
  • Position: #444 / 479
  • Number of attempts: 2
Whitespace, empty lines and tabs - 2928 entries

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

  • Best score: 16
  • Best player score: 28
  • Position: #404 / 657
  • Number of attempts: 3
Simple text editing with Vim - 11589 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #661 / 3402
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 5974 entries

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

  • Best score: 32
  • Best player score: 90
  • Position: #1458 / 1475
  • Number of attempts: 1
migoo
Twitter:

entered into 17 challenges

contributed 0 challenges