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. - 12 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 20
  • Position: #4 / 4
  • Number of attempts: 2
Delete the last function argument in python. - 43 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #1 / 21
  • Number of attempts: 1
Flip All Bits - 53 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: 42
  • Position: #10 / 18
  • Number of attempts: 1
Find the devices that have no revoked time, and extract out the duration left on their leases. - 100 entries

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

  • Best score: 50
  • Best player score: 54
  • Position: #3 / 31
  • Number of attempts: 8
From brakets to parens - 1103 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: #56 / 241
  • Number of attempts: 6
Create json from a .env file - 1569 entries

A simple everyday task.

  • Best score: 39
  • Best player score: 55
  • Position: #142 / 369
  • Number of attempts: 2
YAML to dotenv - 1527 entries

Convert this YAML config file to a .env file.

  • Best score: 16
  • Best player score: 32
  • Position: #225 / 312
  • Number of attempts: 1
Fix the git merge conflicts - 331 entries

Solve the merge conflicts in the Python file

  • Best score: 36
  • Best player score: 53
  • Position: #36 / 97
  • Number of attempts: 1
Move to corresponding lines - 319 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 29
  • Position: #53 / 71
  • Number of attempts: 1
Deleting text - 333 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 45
  • Position: #60 / 105
  • Number of attempts: 3
Hex to binary - 128 entries

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 32
  • Position: #9 / 24
  • Number of attempts: 8
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: #279 / 762
  • Number of attempts: 3
Search and Replace 0 - 5074 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #760 / 1653
  • Number of attempts: 2
Two become one - 721 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 39
  • Position: #184 / 211
  • Number of attempts: 1
Saving the hashes(#) - 2076 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 20
  • Position: #76 / 481
  • Number of attempts: 9
Remove noise from HTTP log - 741 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #151 / 279
  • Number of attempts: 8
Assignment Alignment - 898 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 30
  • Position: #174 / 224
  • Number of attempts: 1
Simple text editing with Vim - 13466 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #770 / 3863
  • Number of attempts: 6
Reformat/Refactor a Golfer Class - 7550 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 7
  • Best player score: 38
  • Position: #712 / 1862
  • Number of attempts: 2
Massimo Pavoni
Github:

entered into 19 challenges

contributed 0 challenges