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

months to html list items - 1130 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 28
  • Position: #186 / 306
  • Number of attempts: 1
Paste a column after a column - 2662 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 21
  • Position: #337 / 576
  • Number of attempts: 4
HS exam question - 1610 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 67
  • Position: #177 / 420
  • Number of attempts: 2
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 42
  • Position: #290 / 355
  • Number of attempts: 2
Many duplicates - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #379 / 480
  • Number of attempts: 3
delete swap - 1834 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #444 / 570
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1294 entries

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

  • Best score: 29
  • Best player score: 56
  • Position: #222 / 277
  • Number of attempts: 1
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 38
  • Position: #395 / 619
  • Number of attempts: 2
Put a newline after every 10 lines in vim - 1680 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #391 / 564
  • Number of attempts: 3
Python dataclasses - 1248 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 36
  • Position: #264 / 311
  • Number of attempts: 2
Making 3 line function a one liner. - 343 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #141 / 211
  • Number of attempts: 1
Sudoku table - 92 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 84
  • Position: #31 / 34
  • Number of attempts: 1
Erick Gonzalez
Twitter2:

I put the magic inside school buses

entered into 12 challenges

contributed 0 challenges