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

Delete the last function argument in python. - 14 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #6 / 9
  • Number of attempts: 1
Flip All Bits - 32 entries

Perform a bitwise NOT operation on each bit, meaning that bits that are 0 become 1, and those that are 1 become 0.

  • Best score: 29
  • Best player score: 30
  • Position: #4 / 15
  • Number of attempts: 2
Find the devices that have no revoked time, and extract out the duration left on their leases. - 98 entries

Extract non-revoked devices and the duration of their leases.

  • Best score: 50
  • Best player score: 59
  • Position: #10 / 29
  • Number of attempts: 7
From brakets to parens - 1091 entries

This is one of the most common problem when you wrap an array for error handling. Vim is useful when you convert foo[i][j][k] into foo(i, j, k) for many times.

  • Best score: 24
  • Best player score: 25
  • Position: #55 / 238
  • Number of attempts: 4
Create json from a .env file - 1568 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 42
  • Position: #67 / 368
  • Number of attempts: 7
YAML to dotenv - 1527 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 16
  • Position: #65 / 312
  • Number of attempts: 4
Swap columns and transform to CSV format - 439 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 17
  • Position: #74 / 159
  • Number of attempts: 3
Fix the git merge conflicts - 330 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 48
  • Position: #26 / 96
  • Number of attempts: 5
Count words - 120 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 42
  • Position: #9 / 26
  • Number of attempts: 8
Simple, Practical, and Common - 33948 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2430 / 7496
  • Number of attempts: 6
Extract argument from function - 2386 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 13
  • Position: #278 / 762
  • Number of attempts: 4
Search and Replace 0 - 5062 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #759 / 1650
  • Number of attempts: 4
Andrew
Github:

entered into 12 challenges

contributed 0 challenges