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

Swap function parameters and delete all comments in python. - 144 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 19
  • Position: #5 / 38
  • Number of attempts: 5
Delete the last function argument in python. - 137 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #4 / 55
  • Number of attempts: 1
Flip All Bits - 107 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: 26
  • Best player score: 30
  • Position: #8 / 35
  • Number of attempts: 2
Find the devices that have no revoked time, and extract out the duration left on their leases. - 122 entries

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

  • Best score: 50
  • Best player score: 59
  • Position: #10 / 36
  • Number of attempts: 7
From brakets to parens - 1134 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 / 249
  • Number of attempts: 4
Create json from a .env file - 1585 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 42
  • Position: #68 / 376
  • Number of attempts: 7
Changing date formats - 710 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 39
  • Position: #15 / 197
  • Number of attempts: 13
YAML to dotenv - 1542 entries

Convert this YAML config file to a .env file.

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

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

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

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 48
  • Position: #26 / 98
  • 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 - 33958 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 / 7498
  • Number of attempts: 6
Extract argument from function - 2392 entries

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

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

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

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

entered into 14 challenges

contributed 0 challenges