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

Simple number generation

  • Best score: 10
  • Best player score: 15
  • Position: #213 / 254
  • Number of attempts: 2
Lowercase first characters - 276 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: #80 / 101
  • Number of attempts: 1
RUST Cargo.toml version to last - 200 entries

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

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

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #72 / 81
  • Number of attempts: 2
Format the CSS - 66 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: #27 / 27
  • Number of attempts: 2
Python Hello World! Reformatting - 888 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: #234 / 344
  • Number of attempts: 1
JS notation to Immutable.js notation - 154 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: 35
  • Best player score: 75
  • Position: #57 / 58
  • Number of attempts: 1
Refactor arguments into object argument - 160 entries

A relatively common Javascript refactoring.

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

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

  • Best score: 25
  • Best player score: 52
  • Position: #103 / 106
  • Number of attempts: 1
PHP <--> Java class conversion Part 1 - 181 entries

Convert this tiny php class to adequate java one.

  • Best score: 65
  • Best player score: 129
  • Position: #47 / 59
  • Number of attempts: 1
A Simple One - 888 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 / 592
  • Number of attempts: 3
Change the content of a string - 1314 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 30
  • Position: #466 / 509
  • Number of attempts: 2
Simple text editing with Vim - 11522 entries

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

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

Full-Stack Software Engineer @ The Farmers Dog

entered into 13 challenges

contributed 0 challenges