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

hello-world-vimgolf - 2533 entries

Simple number generation

  • Best score: 10
  • Best player score: 15
  • Position: #565 / 726
  • Number of attempts: 2
Lowercase first characters - 509 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: 47
  • Position: #141 / 188
  • Number of attempts: 1
RUST Cargo.toml version to last - 399 entries

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

  • Best score: 16
  • Best player score: 23
  • Position: #82 / 106
  • Number of attempts: 1
Making 3 line function a one liner. - 347 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #72 / 214
  • Number of attempts: 2
Format the CSS - 185 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: 58
  • Position: #48 / 52
  • Number of attempts: 2
Python Hello World! Reformatting - 1047 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Position: #261 / 397
  • Number of attempts: 1
JS notation to Immutable.js notation - 196 entries

Now Immutable.js made its way into many frontends. This challenge consists of a typical refactoring that many of us are facing now.

  • Best score: 34
  • Best player score: 75
  • Position: #64 / 65
  • Number of attempts: 1
Refactor arguments into object argument - 181 entries

A relatively common Javascript refactoring.

  • Best score: 48
  • Best player score: 75
  • Position: #51 / 69
  • Number of attempts: 1
you're stuck on jQuery < 1.7 - 401 entries

replace calls to jQuery 1.7+'s `on` with calls to pre 1.7 `bind`

  • Best score: 25
  • Best player score: 52
  • Position: #113 / 116
  • Number of attempts: 1
PHP <--> Java class conversion Part 1 - 258 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 129
  • Position: #51 / 64
  • Number of attempts: 1
A Simple One - 1088 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #524 / 679
  • Number of attempts: 3
Change the content of a string - 1799 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 30
  • Position: #593 / 655
  • Number of attempts: 2
Simple text editing with Vim - 13626 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 16
  • Position: #2419 / 3902
  • Number of attempts: 1
Matthew Beaumont
Twitter:

Full-Stack Software Engineer @ The Farmers Dog

entered into 13 challenges

contributed 0 challenges