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

Turn the months into list items.

  • Best score: 22
  • Best player score: 28
  • Position: #134 / 222
  • Number of attempts: 1
Paste a column after a column - 2413 entries

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

  • Best score: 14
  • Best player score: 21
  • Position: #304 / 523
  • Number of attempts: 4
HS exam question - 1523 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 67
  • Position: #167 / 404
  • Number of attempts: 2
Reformat symbols in list - 1507 entries

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

  • Best score: 24
  • Best player score: 42
  • Position: #271 / 334
  • Number of attempts: 2
Many duplicates - 1350 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #351 / 440
  • Number of attempts: 3
delete swap - 1650 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #403 / 514
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1231 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: #210 / 260
  • Number of attempts: 1
Fix the shell script! - 2431 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #385 / 551
  • Number of attempts: 3
Python dataclasses - 1121 entries

Simple challenge to extract fields from a Python class

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

Simple challenge for frequent action while programming.

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

Make this simple sudoku table look nice and legible.

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

I put the magic inside school buses

entered into 12 challenges

contributed 0 challenges