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 - 737 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: #72 / 155
  • Number of attempts: 1
Learn to ask for :help - 461 entries

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

  • Best score: 19
  • Best player score: 24
  • Position: #28 / 107
  • Number of attempts: 9
Plotting some variables in python - 1384 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: #255 / 294
  • Number of attempts: 2
Transpose a python matrix - 684 entries

Rotate the matrix in 90 degrees.

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

Encapsulate the text in a diamond pattern.

  • Best score: 27
  • Best player score: 84
  • Position: #54 / 65
  • Number of attempts: 2
Increment number for every 10 lines - 180 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: #44 / 53
  • Number of attempts: 3
simple replacements - 1264 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 20
  • Position: #93 / 283
  • Number of attempts: 5
Inverting Lines - 1562 entries

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

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

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 85
  • Position: #50 / 77
  • Number of attempts: 5
Generate a very basic Python constructor - 292 entries

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

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

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 35
  • Position: #74 / 260
  • Number of attempts: 10
Python: Def to Lambda - 410 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #45 / 142
  • Number of attempts: 1
Satisfy the go linter - 2076 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 / 422
  • Number of attempts: 7
Multiline to Single Line - 585 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #150 / 260
  • Number of attempts: 1
xrandr outputs and dashes - 624 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: #154 / 205
  • Number of attempts: 3
From a Thunderlink to a Markdown link - 720 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 / 160
  • Number of attempts: 8
Yo To Hello - 1081 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #331 / 497
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1054 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 / 214
  • Number of attempts: 8
Simple, Practical, and Common - 33124 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: #2711 / 7307
  • Number of attempts: 8
Get mail address from outlook format - 604 entries

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

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

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #997 / 3815
  • Number of attempts: 7
Quote modules - 1024 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 21
  • Position: #20 / 263
  • Number of attempts: 10
Aliases for cd - 820 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: #32 / 147
  • Number of attempts: 13
Add semicolons - 10720 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1383 / 3023
  • Number of attempts: 1
Box it - 7746 entries

Create a box around a line.

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

Oops.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

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

entered into 29 challenges

contributed 0 challenges