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. - 546 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #276 / 304
  • Number of attempts: 4
Paste a column after a column - 2518 entries

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

  • Best score: 14
  • Best player score: 75
  • Position: #521 / 549
  • Number of attempts: 2
HS exam question - 1577 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 97
  • Position: #326 / 415
  • Number of attempts: 1
2 quick changes and a numbered list - 647 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: #135 / 154
  • Number of attempts: 4
delete swap - 1773 entries

delete all swap

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 43
  • Position: #432 / 589
  • Number of attempts: 1
Java to JavaScript - 267 entries

Let convert some simple Java file to JavaScript!

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

Simple number generation

  • Best score: 10
  • Best player score: 18
  • Position: #610 / 706
  • Number of attempts: 1
Lowercase first characters - 487 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: #167 / 183
  • 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 - 1127 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 37
  • Position: #245 / 283
  • Number of attempts: 1
RUST Cargo.toml version to last - 355 entries

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

  • Best score: 16
  • Best player score: 48
  • Position: #98 / 100
  • 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. - 325 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 8
  • Position: #194 / 202
  • Number of attempts: 4
Modernise code - 1388 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 56
  • Position: #264 / 319
  • Number of attempts: 1
Enumerate Bullets - 320 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: 20
  • Best player score: 38
  • Position: #60 / 84
  • Number of attempts: 1
Python: Def to Lambda - 453 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 25
  • Position: #145 / 155
  • Number of attempts: 1
Format the CSS - 157 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: #47 / 48
  • Number of attempts: 1
Duy nguyễn
Twitter2:

entered into 18 challenges

contributed 0 challenges