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 - 718 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #48 / 179
  • Number of attempts: 5
Move to corresponding lines - 324 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 28
  • Position: #47 / 75
  • Number of attempts: 6
Rearrange array to single level - 1814 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: #112 / 306
  • Number of attempts: 6
Rearrange array to one line - 888 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #41 / 204
  • Number of attempts: 4
Paste a column after a column - 2668 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #131 / 578
  • Number of attempts: 5
Tabbed Table to Python Array - 773 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: #111 / 185
  • Number of attempts: 5
HS exam question - 1613 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 92
  • Position: #321 / 422
  • Number of attempts: 1
Rural Post - 4596 entries

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

  • Best score: 9
  • Best player score: 23
  • Position: #908 / 1122
  • 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