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

Generate a very basic Python constructor (fixed) - 848 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 55
  • Position: #143 / 184
  • Number of attempts: 7
Fix the shell script! - 1421 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 30
  • Position: #128 / 350
  • Number of attempts: 7
Visual block training - 651 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 18
  • Position: #6 / 123
  • Number of attempts: 19
Put a newline after every 10 lines in vim - 1171 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #100 / 404
  • Number of attempts: 3
hello-world-vimgolf - 1768 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #166 / 509
  • Number of attempts: 6
Plotting some variables in python - 1276 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: 47
  • Position: #137 / 272
  • Number of attempts: 5
Inverting Lines - 1447 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #203 / 396
  • Number of attempts: 6
Rural Post - 4166 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #178 / 1031
  • Number of attempts: 10
Satisfy the go linter - 2032 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: 25
  • Position: #241 / 413
  • Number of attempts: 8
From a Thunderlink to a Markdown link - 711 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: 35
  • Position: #149 / 158
  • Number of attempts: 5
Add semicolons - 10715 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #736 / 3019
  • Number of attempts: 3
Cool or not? - 765 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #68 / 218
  • Number of attempts: 9
Search and Replace 0 - 4722 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #689 / 1562
  • Number of attempts: 6
A simple change - 429 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 12
  • Position: #44 / 184
  • Number of attempts: 4
A Simple One - 968 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #533 / 629
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3060 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #130 / 677
  • Number of attempts: 11
ff df
Twitter:

entered into 16 challenges

contributed 0 challenges