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 - 929 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 28
  • Position: #151 / 245
  • Number of attempts: 1
Paste a column after a column - 2488 entries

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

  • Best score: 14
  • Best player score: 21
  • Position: #312 / 538
  • Number of attempts: 4
HS exam question - 1560 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 67
  • Position: #171 / 412
  • Number of attempts: 2
Reformat symbols in list - 1581 entries

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

  • Best score: 24
  • Best player score: 42
  • Position: #276 / 339
  • Number of attempts: 2
Many duplicates - 1428 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #366 / 463
  • Number of attempts: 3
delete swap - 1758 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #427 / 544
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1250 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: #215 / 270
  • Number of attempts: 1
Fix the shell script! - 2540 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #386 / 555
  • Number of attempts: 3
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

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

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #141 / 201
  • 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