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

Surround the 'z' character with brackets, quotes, and print as formatted string. - 570 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 19
  • Position: #291 / 319
  • Number of attempts: 4
Paste a column after a column - 2610 entries

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

  • Best score: 14
  • Best player score: 75
  • Position: #538 / 566
  • Number of attempts: 2
HS exam question - 1596 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 97
  • Position: #329 / 418
  • Number of attempts: 1
2 quick changes and a numbered list - 648 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 90
  • Position: #136 / 155
  • Number of attempts: 4
delete swap - 1809 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #252 / 564
  • Number of attempts: 2
Fix the shell script! - 2606 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 43
  • Position: #447 / 607
  • Number of attempts: 1
Java to JavaScript - 285 entries

Let convert some simple Java file to JavaScript!

  • Best score: 59
  • Best player score: 212
  • Position: #76 / 76
  • Number of attempts: 1
hello-world-vimgolf - 2506 entries

Simple number generation

  • Best score: 10
  • Best player score: 18
  • Position: #616 / 713
  • Number of attempts: 1
Lowercase first characters - 490 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 59
  • Position: #168 / 184
  • Number of attempts: 1
Generate a very basic Python constructor - 316 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 69
  • Position: #77 / 98
  • Number of attempts: 1
Python dataclasses - 1215 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 37
  • Position: #262 / 301
  • Number of attempts: 1
RUST Cargo.toml version to last - 363 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 48
  • Position: #100 / 102
  • Number of attempts: 1
RUST match with enum for Coin - 183 entries

RUST match with enum for Coin rusty practice on vimgolf

  • Best score: 84
  • Best player score: 188
  • Position: #53 / 53
  • Number of attempts: 1
Making 3 line function a one liner. - 340 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 8
  • Position: #201 / 209
  • Number of attempts: 4
Modernise code - 1410 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 56
  • Position: #270 / 326
  • Number of attempts: 1
Enumerate Bullets - 327 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 18
  • Best player score: 38
  • Position: #62 / 89
  • Number of attempts: 1
Python: Def to Lambda - 460 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 25
  • Position: #147 / 157
  • Number of attempts: 1
Format the CSS - 158 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 60
  • Position: #48 / 49
  • Number of attempts: 1
Duy nguyễn
Twitter2:

entered into 18 challenges

contributed 0 challenges