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 - 979 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: #88 / 186
  • Number of attempts: 1
Learn to ask for :help - 593 entries

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

  • Best score: 19
  • Best player score: 24
  • Position: #36 / 131
  • Number of attempts: 9
Plotting some variables in python - 1683 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: #308 / 352
  • Number of attempts: 2
Transpose a python matrix - 901 entries

Rotate the matrix in 90 degrees.

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

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 84
  • Position: #64 / 76
  • Number of attempts: 2
Increment number for every 10 lines - 245 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: #57 / 66
  • Number of attempts: 3
simple replacements - 1857 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #120 / 398
  • Number of attempts: 5
Inverting Lines - 1946 entries

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

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

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 85
  • Position: #62 / 97
  • Number of attempts: 5
Generate a very basic Python constructor - 336 entries

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

  • Best score: 38
  • Best player score: 47
  • Position: #43 / 101
  • Number of attempts: 4
Modernise code - 1429 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #87 / 329
  • Number of attempts: 10
Python: Def to Lambda - 474 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #45 / 158
  • Number of attempts: 1
Satisfy the go linter - 2468 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 / 491
  • Number of attempts: 7
Multiline to Single Line - 747 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #150 / 318
  • Number of attempts: 1
xrandr outputs and dashes - 725 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: #172 / 226
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 783 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 / 174
  • Number of attempts: 8
Yo To Hello - 1152 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #332 / 534
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1151 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 / 233
  • Number of attempts: 8
Simple, Practical, and Common - 33904 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: #2763 / 7483
  • Number of attempts: 8
Get mail address from outlook format - 649 entries

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

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

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1018 / 3892
  • Number of attempts: 7
Quote modules - 1095 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Position: #20 / 286
  • Number of attempts: 10
Aliases for cd - 881 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: #37 / 156
  • Number of attempts: 13
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1402 / 3085
  • Number of attempts: 1
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #318 / 1891
  • Number of attempts: 4
I forgot quotes - 16104 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1016 / 4205
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 10714 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1504 / 3701
  • Number of attempts: 2
Words in parens - 12992 entries

We should all ace this, right?

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

entered into 29 challenges

contributed 0 challenges