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

Turn the months into list items.

  • Best score: 22
  • Best player score: 28
  • Position: #127 / 208
  • Number of attempts: 1
Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 21
  • Position: #297 / 514
  • Number of attempts: 4
HS exam question - 1517 entries

Convert the data to a python dictionary

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

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

  • Best score: 24
  • Best player score: 42
  • Position: #267 / 328
  • Number of attempts: 2
Many duplicates - 1304 entries

Quick and easy

  • Best score: 6
  • Best player score: 10
  • Position: #339 / 427
  • Number of attempts: 3
delete swap - 1614 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #396 / 503
  • Number of attempts: 3
Generate a very basic Python constructor (fixed) - 1214 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: #206 / 254
  • Number of attempts: 1
Fix the shell script! - 2400 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #383 / 542
  • Number of attempts: 3
Python dataclasses - 1120 entries

Simple challenge to extract fields from a Python class

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

Simple challenge for frequent action while programming.

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

Make this simple sudoku table look nice and legible.

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

I put the magic inside school buses

entered into 12 challenges

contributed 0 challenges