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

Turn the months into list items.

  • Best score: 22
  • Best player score: 28
  • Position: #172 / 284
  • Number of attempts: 1
Paste a column after a column - 2547 entries

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

  • Best score: 14
  • Best player score: 21
  • Position: #322 / 556
  • Number of attempts: 4
HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 67
  • Position: #174 / 417
  • Number of attempts: 2
Reformat symbols in list - 1625 entries

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

  • Best score: 24
  • Best player score: 42
  • Position: #286 / 349
  • Number of attempts: 2
Many duplicates - 1447 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #371 / 470
  • Number of attempts: 3
delete swap - 1788 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #433 / 557
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1253 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: #216 / 271
  • Number of attempts: 1
Fix the shell script! - 2596 entries

Fix the shell script with the fewest keystrokes!

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

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

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

Simple challenge to extract fields from a Python class

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

Simple challenge for frequent action while programming.

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