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

Simple number generation

  • Best score: 10
  • Best player score: 15
  • Position: #544 / 699
  • Number of attempts: 2
Lowercase first characters - 484 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: #137 / 181
  • Number of attempts: 1
RUST Cargo.toml version to last - 332 entries

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

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

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #72 / 200
  • Number of attempts: 2
Format the CSS - 137 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: #42 / 46
  • Number of attempts: 2
Python Hello World! Reformatting - 955 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: #246 / 371
  • Number of attempts: 1
JS notation to Immutable.js notation - 165 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: #61 / 62
  • Number of attempts: 1
Refactor arguments into object argument - 162 entries

A relatively common Javascript refactoring.

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

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

  • Best score: 25
  • Best player score: 52
  • Position: #109 / 112
  • Number of attempts: 1
PHP <--> Java class conversion Part 1 - 213 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 129
  • Position: #49 / 62
  • Number of attempts: 1
A Simple One - 1009 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 / 648
  • Number of attempts: 3
Change the content of a string - 1502 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 30
  • Position: #515 / 567
  • Number of attempts: 2
Simple text editing with Vim - 12491 entries

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

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

Full-Stack Software Engineer @ The Farmers Dog

entered into 13 challenges

contributed 0 challenges