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

A simple everyday task.

  • Best score: 39
  • Best player score: 48
  • Position: #102 / 345
  • Number of attempts: 6
YAML to dotenv - 1425 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 30
  • Position: #201 / 293
  • Number of attempts: 1
Fix the git merge conflicts - 310 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 73
  • Position: #70 / 87
  • Number of attempts: 1
Fix the Scala Method - 296 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: #74 / 94
  • Number of attempts: 1
Move list of uuids into a SQL query - 218 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 / 71
  • Number of attempts: 3
Copy punctuation - 681 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: #72 / 165
  • Number of attempts: 1
New teacher - 1465 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 31
  • Position: #254 / 306
  • Number of attempts: 1
Python dataclasses - 1247 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 35
  • Position: #261 / 310
  • 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 - 7975 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 32
  • Position: #1531 / 1893
  • Number of attempts: 2
Python Hello World! Reformatting - 1010 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: #330 / 386
  • Number of attempts: 1
Swap assigned value - 671 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 10
  • Position: #115 / 259
  • 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 - 2188 entries

How to switch two arguments of a function.

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

Some lines need the semicolon, some don't.

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

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Position: #354 / 635
  • Number of attempts: 3
Simple text editing with Vim - 13343 entries

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

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

entered into 17 challenges

contributed 0 challenges