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

A simple everyday task.

  • Best score: 39
  • Best player score: 48
  • Position: #104 / 353
  • Number of attempts: 6
YAML to dotenv - 1459 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 30
  • Position: #204 / 298
  • Number of attempts: 1
Fix the git merge conflicts - 317 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 73
  • Position: #73 / 89
  • Number of attempts: 1
Fix the Scala Method - 306 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: #77 / 98
  • Number of attempts: 1
Move list of uuids into a SQL query - 227 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 / 73
  • Number of attempts: 3
Copy punctuation - 684 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 / 167
  • 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 - 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 - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 32
  • Position: #1533 / 1895
  • Number of attempts: 2
Python Hello World! Reformatting - 1011 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: #331 / 387
  • 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 - 1750 entries

This docstring is a complete lie. Fix it.

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

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

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

entered into 17 challenges

contributed 0 challenges