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

Remove adjacent duplicates - 350 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #23 / 101
  • Number of attempts: 5
Move to corresponding lines - 182 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 28
  • Position: #29 / 45
  • Number of attempts: 6
Rearrange array to single level - 1092 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 23
  • Position: #71 / 184
  • Number of attempts: 6
Rearrange array to one line - 521 entries

Rearrange the array content on only one line, and remove trailing commas

  • Best score: 13
  • Best player score: 14
  • Position: #23 / 129
  • Number of attempts: 4
Paste a column after a column - 2504 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #120 / 547
  • Number of attempts: 5
Tabbed Table to Python Array - 721 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 63
  • Position: #104 / 178
  • Number of attempts: 5
HS exam question - 1575 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 92
  • Position: #313 / 415
  • Number of attempts: 1
Rural Post - 4460 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 23
  • Position: #880 / 1092
  • Number of attempts: 3
Henry Sloan
Twitter:

Software engineer in cloud infrastructure and virtualization. Rust and C++ enjoyer. Classical music and Jazz lover, pianist, guitarist and violinist.

entered into 8 challenges

contributed 0 challenges