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

Substraction (bis) - 303 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 22
  • Best player score: 34
  • Position: #39 / 68
  • Number of attempts: 3
Poorly indented Python comments - 748 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 29
  • Position: #67 / 143
  • Number of attempts: 6
Many duplicates - 624 entries

Quick and easy

  • Best score: 7
  • Best player score: 12
  • Position: #187 / 216
  • Number of attempts: 1
delete swap - 759 entries

delete all swap

  • Best score: 5
  • Best player score: 6
  • Position: #182 / 256
  • Number of attempts: 5
Generate a very basic Python constructor (fixed) - 859 entries

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

  • Best score: 29
  • Best player score: 38
  • Position: #71 / 186
  • Number of attempts: 2
Visual block training - 651 entries

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

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #182 / 405
  • Number of attempts: 2
Wikitext headings to markdown - 717 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 30
  • Position: #101 / 159
  • Number of attempts: 2
hello-world-vimgolf - 1768 entries

Simple number generation

  • Best score: 10
  • Best player score: 11
  • Position: #261 / 509
  • Number of attempts: 1
Fill in the chess board - 668 entries

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

  • Best score: 19
  • Best player score: 39
  • Position: #88 / 142
  • Number of attempts: 1
Plotting some variables in python - 1283 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: 60
  • Position: #204 / 274
  • Number of attempts: 2
Migrated to Postgres! - 245 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 35
  • Position: #80 / 97
  • Number of attempts: 1
Inverting Lines - 1453 entries

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

  • Best score: 10
  • Best player score: 16
  • Position: #309 / 397
  • Number of attempts: 1
Generate a very basic Python constructor - 285 entries

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

  • Best score: 38
  • Best player score: 46
  • Position: #36 / 82
  • Number of attempts: 2
Python dataclasses - 724 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 38
  • Position: #167 / 186
  • Number of attempts: 1
Making 3 line function a one liner. - 198 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #36 / 130
  • Number of attempts: 1
Modernise code - 1007 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 59
  • Position: #197 / 228
  • Number of attempts: 1
Put a cross in the square - 145 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 28
  • Position: #63 / 64
  • Number of attempts: 1
HS Final exam vimgolf - 754 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 35
  • Position: #148 / 202
  • Number of attempts: 1
C to python code snippet - 68 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 76
  • Position: #15 / 22
  • Number of attempts: 2
Rural Post - 4166 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #602 / 1031
  • Number of attempts: 1
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: 27
  • Position: #275 / 413
  • Number of attempts: 4
Yo To Hello - 1066 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #316 / 489
  • Number of attempts: 3
Python Hello World! Reformatting - 910 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 47
  • Position: #302 / 355
  • Number of attempts: 1
Free hyphen! - 156 entries

Just like "Inner hyphens", but I'm giving you a free hyphen to play with. Will your solution be any different?

  • Best score: 9
  • Best player score: 11
  • Position: #80 / 84
  • Number of attempts: 2
Alphabet soup - 396 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 42
  • Position: #83 / 96
  • Number of attempts: 1

Contributed Challenges

Plotting some variables in python - 1283 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.

A White Dwarf
Twitter:

entered into 26 challenges

contributed 1 challenges