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

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 21
  • Position: #45 / 168
  • Number of attempts: 5
Move to corresponding lines - 307 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 28
  • Position: #45 / 69
  • Number of attempts: 6
Rearrange array to single level - 1742 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: #106 / 291
  • Number of attempts: 6
Rearrange array to one line - 810 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #36 / 191
  • Number of attempts: 4
Paste a column after a column - 2662 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 / 576
  • Number of attempts: 5
Tabbed Table to Python Array - 769 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: #110 / 184
  • Number of attempts: 5
HS exam question - 1610 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 92
  • Position: #319 / 420
  • Number of attempts: 1
Rural Post - 4579 entries

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

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