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

Reformat symbols in list - 692 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 33
  • Position: #93 / 156
  • Number of attempts: 4
Poorly indented Python comments - 748 entries

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

  • Best score: 15
  • Best player score: 15
  • Position: #23 / 143
  • Number of attempts: 10
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: 29
  • Position: #13 / 186
  • Number of attempts: 11
Fix the shell script! - 1432 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 26
  • Position: #15 / 351
  • Number of attempts: 11
Visual block training - 651 entries

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

  • Best score: 17
  • Best player score: 21
  • Position: #34 / 123
  • Number of attempts: 3
Innocent Monster - 129 entries

You have the tools, just create him!

  • Best score: 60
  • Best player score: 138
  • Position: #30 / 39
  • Number of attempts: 1
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: 11
  • Position: #94 / 405
  • Number of attempts: 3
Wikitext headings to markdown - 717 entries

Convert the wikitext headings to markdown.

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

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #161 / 509
  • Number of attempts: 4
Contribute to keyboard mashing - 704 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #152 / 216
  • Number of attempts: 2
Reordering Lorem Ipsum - 210 entries

Who even sorted this?

  • Best score: 13
  • Best player score: 14
  • Position: #27 / 51
  • Number of attempts: 8
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: 19
  • Position: #15 / 142
  • Number of attempts: 16
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: 35
  • Position: #62 / 274
  • Number of attempts: 8
Transpose a python matrix - 645 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 24
  • Position: #27 / 113
  • Number of attempts: 16
Python dataclasses - 724 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 21
  • Position: #75 / 186
  • Number of attempts: 4
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: 46
  • Position: #291 / 355
  • Number of attempts: 2
change parenthesis - 260 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Position: #134 / 147
  • Number of attempts: 1
Word frequency alignment - 256 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #113 / 150
  • Number of attempts: 3
Insert a Markdown link - 422 entries

Put a link in a markdown document, using the after-the-paragraph format.

  • Best score: 22
  • Best player score: 34
  • Position: #133 / 142
  • Number of attempts: 3
Get rid of html tags - 348 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 15
  • Best player score: 16
  • Position: #11 / 209
  • Number of attempts: 2
John Xu
Twitter:

musa student 2021

entered into 20 challenges

contributed 0 challenges