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

simple replacements - 1536 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 53
  • Position: #328 / 336
  • Number of attempts: 1
Inverting Lines - 1797 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 20
  • Position: #437 / 486
  • Number of attempts: 2
C to python code snippet - 78 entries

C code can be easily translated into Python code. However, the difference in syntax can make this process tedious and time-consuming. Can Vim help you here?

  • Best score: 48
  • Best player score: 108
  • Position: #25 / 27
  • Number of attempts: 1
Python: Def to Lambda - 423 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 20
  • Position: #92 / 149
  • Number of attempts: 2
Levenshtein distance - 104 entries

Compute distance for each pair. Notice that this recursive implementation is very inefficient. Wagner-Fischer algorithm is iterative and much faster. #vimscript

  • Best score: 27
  • Best player score: 44
  • Position: #31 / 36
  • Number of attempts: 1
Data reformat - 271 entries

Reformat this copy-paste data! #csv

  • Best score: 38
  • Best player score: 46
  • Position: #31 / 60
  • Number of attempts: 4
Create Leading Zeros - 232 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 74
  • Position: #77 / 79
  • Number of attempts: 1
Create a table - 325 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 35
  • Position: #102 / 104
  • Number of attempts: 2
Fun With The Diagonal - 103 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #71 / 79
  • Number of attempts: 4
Triangle of arrows - 166 entries

I made this by accident when working on another challenge. How would you go about making this?

  • Best score: 14
  • Best player score: 53
  • Position: #36 / 39
  • Number of attempts: 2
mp3 - Cutlist - 29 entries

An audio CD was accidentally ripped into one single mp3 file. A dummy cue-file now needs to be filled out with the correct values to get single mp3 files.

  • Best score: 65
  • Best player score: 70
  • Position: #4 / 12
  • Number of attempts: 3
Hello ${world} - 299 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 62
  • Position: #85 / 94
  • Number of attempts: 2
Land of the Lost - 77 entries

Enter the tabs below the lyrics

  • Best score: 26
  • Best player score: 85
  • Position: #30 / 30
  • Number of attempts: 1
vim1001 - 275 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 42
  • Position: #103 / 107
  • Number of attempts: 1
Number an outline - 246 entries

The indent and words are right, but the numbers are all wrong.

  • Best score: 25
  • Best player score: 64
  • Position: #53 / 74
  • Number of attempts: 1
Recursively Palindrome - 239 entries

Note that there are 2^6-1 characters.

  • Best score: 21
  • Best player score: 67
  • Position: #72 / 73
  • Number of attempts: 1
Dumb to smart - 96 entries

Turn dumb quote to smart vim's way.

  • Best score: 28
  • Best player score: 37
  • Position: #41 / 54
  • Number of attempts: 1
Fix the Haiku - 275 entries

Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.

  • Best score: 28
  • Best player score: 54
  • Position: #100 / 109
  • Number of attempts: 2
Borna Sadeghi
Twitter:

entered into 18 challenges

contributed 0 challenges