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

Fill in the chess board - 190 entries

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

  • Best score: 19
  • Best player score: 35
  • Position: #20 / 42
  • Number of attempts: 1
Learn to ask for :help - 180 entries

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

  • Best score: 19
  • Best player score: 24
  • Position: #14 / 42
  • Number of attempts: 9
Plotting some variables in python - 569 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: 66
  • Position: #99 / 115
  • Number of attempts: 2
Transpose a python matrix - 323 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 23
  • Position: #9 / 63
  • Number of attempts: 24
Create a diamond comment - 133 entries

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 84
  • Position: #30 / 36
  • Number of attempts: 2
Increment number for every 10 lines - 118 entries

The file consists of 2 columns (code and percentage). We need to add 2 more columns with increasing number for 4th column (Xcols) and increment 3rd column (Ycols) only for every 10 lines with reset of 4th column

  • Best score: 25
  • Best player score: 76
  • Position: #31 / 36
  • Number of attempts: 3
simple replacements - 660 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #52 / 155
  • Number of attempts: 5
Inverting Lines - 964 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #107 / 264
  • Number of attempts: 8
CSV to MD format - 190 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 85
  • Position: #34 / 49
  • Number of attempts: 5
Generate a very basic Python constructor - 172 entries

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

  • Best score: 38
  • Best player score: 47
  • Position: #27 / 47
  • Number of attempts: 4
Modernise code - 632 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #51 / 147
  • Number of attempts: 10
Python: Def to Lambda - 220 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #45 / 79
  • Number of attempts: 1
Satisfy the go linter - 1611 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: #107 / 331
  • Number of attempts: 7
Multiline to Single Line - 374 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #150 / 177
  • Number of attempts: 1
xrandr outputs and dashes - 555 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: 13
  • Position: #138 / 183
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 642 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 18
  • Position: #48 / 143
  • Number of attempts: 8
Yo To Hello - 980 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #331 / 452
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 954 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 21
  • Position: #37 / 193
  • Number of attempts: 8
Simple, Practical, and Common - 32765 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 23
  • Position: #2682 / 7241
  • Number of attempts: 8
Get mail address from outlook format - 552 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 15
  • Position: #27 / 171
  • Number of attempts: 3
prepend * to every non-blank line - 5829 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #124 / 1434
  • Number of attempts: 7
One number per line - 18294 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #977 / 3770
  • Number of attempts: 7
Quote modules - 985 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Position: #20 / 252
  • Number of attempts: 10
Aliases for cd - 787 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 33
  • Position: #31 / 143
  • Number of attempts: 13
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1360 / 2966
  • Number of attempts: 1
Box it - 7657 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #319 / 1829
  • Number of attempts: 4
I forgot quotes - 15666 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1017 / 4098
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 10513 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1505 / 3629
  • Number of attempts: 2
Words in parens - 12690 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1780 / 3906
  • Number of attempts: 7
Bspammer
Twitter:

entered into 29 challenges

contributed 0 challenges