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

Filename Flip - 196 entries

Rearrange the MP3 filenames so that the identifier comes before the name.

  • Best score: 15
  • Best player score: 16
  • Position: #16 / 70
  • Number of attempts: 2
Filling braces - 481 entries

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

  • Best score: 21
  • Best player score: 26
  • Position: #44 / 157
  • Number of attempts: 2
Even and Odd - 393 entries

separate the even numbers from the odd numbers

  • Best score: 13
  • Best player score: 14
  • Position: #24 / 101
  • Number of attempts: 3
hexagram binary tree - 128 entries

generate the binary tree that represents all possible hexagrams found in the book of changes (易经)

  • Best score: 23
  • Best player score: 41
  • Position: #19 / 30
  • Number of attempts: 1
Swap function parameters and delete all comments in python. - 1075 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 19
  • Position: #48 / 263
  • Number of attempts: 6
Delete the last function argument in python. - 729 entries

Delete the last function argument in this python script.

  • Best score: 6
  • Best player score: 6
  • Position: #122 / 261
  • Number of attempts: 1
Fizzbuzz - 614 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 44
  • Best player score: 50
  • Position: #30 / 172
  • Number of attempts: 6
Count to 100 in word form - 162 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 53
  • Best player score: 81
  • Position: #24 / 35
  • Number of attempts: 2
Sierpinski's Triangle - 110 entries

Build the famous fractal, Sierpinski's Triangle.

  • Best score: 25
  • Best player score: 29
  • Position: #13 / 29
  • Number of attempts: 7
Simple Maths - 89 entries

Not much to say, discover by yourself!

  • Best score: 26
  • Best player score: 28
  • Position: #10 / 32
  • Number of attempts: 6
Generate Fibonacci Numbers - 334 entries

Use your super vim powers to generate Fibonacci Numbers.

  • Best score: 19
  • Best player score: 20
  • Position: #46 / 108
  • Number of attempts: 5
82 bottles of beer on the wall - 330 entries

Take them down. (sorry, only 82 bottles because the problem size is limited!)

  • Best score: 106
  • Best player score: 136
  • Position: #94 / 150
  • Number of attempts: 1
Remember FizzBuzz? - 837 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 58
  • Position: #109 / 214
  • Number of attempts: 2
Mukundan
Github:

entered into 13 challenges

contributed 0 challenges