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

Quicksort - 1676 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 6
  • Position: #48 / 369
  • Number of attempts: 6
EDN reformat - 1085 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #40 / 151
  • Number of attempts: 12
Find fix point of cos - 1169 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: #49 / 355
  • Number of attempts: 4
Paste a column after a column - 2367 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 14
  • Position: #78 / 514
  • Number of attempts: 9
Many duplicates - 1304 entries

Quick and easy

  • Best score: 6
  • Best player score: 8
  • Position: #262 / 427
  • Number of attempts: 1
delete swap - 1614 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #297 / 503
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1628 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #187 / 542
  • Number of attempts: 3
Simple, Practical, and Common - 33427 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: #2389 / 7377
  • Number of attempts: 4
Swap values - 4553 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #358 / 1259
  • Number of attempts: 4
One number per line - 18644 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #765 / 3849
  • Number of attempts: 7
Prime Numbers - 345 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 39
  • Position: #29 / 102
  • Number of attempts: 2
levioneyh
Twitter2:

entered into 11 challenges

contributed 0 challenges