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

A simple everyday task.

  • Best score: 39
  • Best player score: 48
  • Position: #108 / 376
  • Number of attempts: 6
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 30
  • Position: #216 / 316
  • Number of attempts: 1
Fix the git merge conflicts - 332 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 73
  • Position: #80 / 98
  • Number of attempts: 1
Fix the Scala Method - 338 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: #83 / 112
  • Number of attempts: 1
Move list of uuids into a SQL query - 228 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 / 74
  • Number of attempts: 3
Copy punctuation - 715 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: #74 / 173
  • Number of attempts: 1
New teacher - 1480 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 31
  • Position: #258 / 310
  • Number of attempts: 1
Python dataclasses - 1248 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 35
  • Position: #261 / 311
  • Number of attempts: 2
Hogwarts Email Sorting - 948 entries

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

  • Best score: 20
  • Best player score: 55
  • Position: #263 / 268
  • Number of attempts: 2
Box it - 7997 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 32
  • Position: #1535 / 1897
  • Number of attempts: 2
Python Hello World! Reformatting - 1015 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: #333 / 390
  • Number of attempts: 1
Swap assigned value - 675 entries

Simple problem but looking for interesting solutions.

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

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

  • Best score: 28
  • Best player score: 57
  • Position: #41 / 49
  • Number of attempts: 2
Switch function arguments - 2195 entries

How to switch two arguments of a function.

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

Some lines need the semicolon, some don't.

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

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #355 / 645
  • Number of attempts: 3
Simple text editing with Vim - 13468 entries

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

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

entered into 17 challenges

contributed 0 challenges