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

Populate 3D bone names list - 629 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 22
  • Position: #48 / 162
  • Number of attempts: 8
Find fix point of cos - 1402 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 14
  • Position: #5 / 415
  • Number of attempts: 6
Insert column data on Confluence-style table - 458 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 47
  • Position: #54 / 109
  • Number of attempts: 5
HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 79
  • Position: #267 / 417
  • Number of attempts: 3
Levenshtein distance - 105 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: #33 / 37
  • Number of attempts: 2
Simple, Practical, and Common - 33617 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: #1289 / 7421
  • Number of attempts: 8
One number per line - 18727 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #400 / 3864
  • Number of attempts: 8
Box it - 7905 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 34
  • Position: #1576 / 1876
  • Number of attempts: 6
Team names - 1836 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #121 / 588
  • Number of attempts: 3
I forgot quotes - 15983 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #717 / 4180
  • Number of attempts: 7
chriskuck
Twitter:

entered into 10 challenges

contributed 0 challenges