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

Create json from a .env file - 1716 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 48
  • Position: #116 / 416
  • Number of attempts: 6
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 30
  • Position: #232 / 342
  • Number of attempts: 1
Fix the git merge conflicts - 353 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 73
  • Position: #88 / 107
  • Number of attempts: 1
Fix the Scala Method - 375 entries

Fix the missing semicolons and the Int type, ensure the floating point division, and remove the unnecessary return.

  • Best score: 2
  • Best player score: 29
  • Position: #90 / 124
  • Number of attempts: 1
Move list of uuids into a SQL query - 245 entries

Take the list of UUIDs and use them as a filter in the where statement of a SQL query

  • Best score: 57
  • Best player score: 63
  • Position: #24 / 82
  • Number of attempts: 3
Copy punctuation - 747 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 33
  • Position: #76 / 183
  • Number of attempts: 1
New teacher - 1527 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 31
  • Position: #266 / 319
  • Number of attempts: 1
Python dataclasses - 1253 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 35
  • Position: #263 / 313
  • Number of attempts: 2
Hogwarts Email Sorting - 954 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 55
  • Position: #266 / 272
  • Number of attempts: 2
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 32
  • Position: #1538 / 1901
  • Number of attempts: 2
Python Hello World! Reformatting - 1052 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: 47
  • Position: #342 / 400
  • Number of attempts: 1
Swap assigned value - 695 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #115 / 263
  • Number of attempts: 7
Extract text from xml - 150 entries

Extract text from xml file (ignoring commented out elements) and create a one line regex.

  • Best score: 28
  • Best player score: 57
  • Position: #43 / 51
  • Number of attempts: 2
Switch function arguments - 2229 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #201 / 684
  • Number of attempts: 5
Append semicolon after expressions - 1087 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #147 / 426
  • Number of attempts: 4
Change the content of a string - 1803 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #362 / 656
  • Number of attempts: 3
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #2103 / 3907
  • Number of attempts: 5
Davidoof
Github:

entered into 17 challenges

contributed 0 challenges