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

Even and Odd - 255 entries

separate the even numbers from the odd numbers

  • Best score: 13
  • Best player score: 21
  • Position: #36 / 56
  • Number of attempts: 1
Swap function parameters and delete all comments in python. - 956 entries

Swap function parameters and delete all comments in python.

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

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #4 / 233
  • Number of attempts: 1
Flip All Bits - 401 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: #20 / 123
  • Number of attempts: 2
Find the devices that have no revoked time, and extract out the duration left on their leases. - 212 entries

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

  • Best score: 50
  • Best player score: 59
  • Position: #15 / 53
  • Number of attempts: 7
From brakets to parens - 1306 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 / 295
  • Number of attempts: 4
Create json from a .env file - 1716 entries

A simple everyday task.

  • Best score: 38
  • Best player score: 42
  • Position: #73 / 416
  • Number of attempts: 7
Changing date formats - 751 entries

Change the date format to Y/M/D.

  • Best score: 36
  • Best player score: 39
  • Position: #17 / 211
  • Number of attempts: 13
YAML to dotenv - 1637 entries

Convert this YAML config file to a .env file.

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

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

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

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 48
  • Position: #27 / 107
  • Number of attempts: 5
Change class fields from camel case to snake case - 669 entries

This is the reverse of the previous challenge: https://www.vimgolf.com/challenges/9v006705493c000000000513

  • Best score: 18
  • Best player score: 25
  • Position: #99 / 154
  • Number of attempts: 3
Count words - 129 entries

Merge duplicates and count each word.

  • Best score: 39
  • Best player score: 42
  • Position: #9 / 28
  • Number of attempts: 8
Simple, Practical, and Common - 34021 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 / 7517
  • Number of attempts: 6
Extract argument from function - 2429 entries

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

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

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

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

entered into 16 challenges

contributed 0 challenges