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

NBCU Weekly Challenge - Test - 244 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #15 / 115
  • Number of attempts: 1
Lisp Condense - 449 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 14
  • Position: #63 / 157
  • Number of attempts: 1
120 Degrees - 469 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 14
  • Position: #4 / 144
  • Number of attempts: 1
Vim tetris - 353 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 21
  • Position: #2 / 102
  • Number of attempts: 4
Five Pillars - 63 entries

Arrange all words in a table with 5 columns. The minimal space between words in columns is 2 spaces. Columns do have varying width.

  • Best score: 41
  • Best player score: 57
  • Position: #10 / 24
  • Number of attempts: 1
Piphilology - 143 entries

Piphilology comprises the creation and use of mnemonic techniques to remember a span of digits of the mathematical constant π. http://en.wikipedia.org/wiki/Piphilology

  • Best score: 28
  • Best player score: 29
  • Position: #5 / 52
  • Number of attempts: 1
HTML formatting: vertical alignment for readability - 67 entries

We did this a VimGolf challenge at work and now that we have finished I want to see if you guys can come up with something even better than we could. Our best solution was 44 keystrokes.

  • Best score: 32
  • Best player score: 33
  • Position: #6 / 35
  • Number of attempts: 1
Write Setters and Getters for PHP - 87 entries

Just simple automation of writing Setters and Getters like Doctrine might use.

  • Best score: 102
  • Best player score: 108
  • Position: #5 / 33
  • Number of attempts: 1
Permutations N=4 - 61 entries

Could use backtracking or other algorithm to generate sorted numbers. Second chance !

  • Best score: 25
  • Best player score: 27
  • Position: #8 / 19
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10652 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #4 / 3677
  • Number of attempts: 2
Ninjas Leaderboard - 86 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 77
  • Position: #40 / 40
  • Number of attempts: 1
Counting in binary - 478 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 16
  • Position: #2 / 114
  • Number of attempts: 1
199 Fibonacci Numbers - 40 entries

Generate 199 Fibonacci Numbers using, if you like, the function S(x,y), a vimscript to sum two big numbers in reverse order.

  • Best score: 51
  • Best player score: 52
  • Position: #4 / 18
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1594 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Position: #31 / 443
  • Number of attempts: 1
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #163 / 1742
  • Number of attempts: 4
MP
Twitter:

'-'

entered into 15 challenges

contributed 0 challenges