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

Search different SQL column with similar where clause - 105 entries

Replace a column in the where clause and convert all numbers from text to numeric, by replacing the leading 0 with the code 359.

  • Best score: 22
  • Best player score: 27
  • Position: #25 / 35
  • Number of attempts: 3
Remove adjacent duplicates - 349 entries

Try to find a way to remove adjacent duplicate letters.

  • Best score: 19
  • Best player score: 22
  • Position: #33 / 100
  • Number of attempts: 3
Move to corresponding lines - 182 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 19
  • Position: #12 / 45
  • Number of attempts: 7
Rearrange array to single level - 1074 entries

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

  • Best score: 14
  • Best player score: 18
  • Position: #27 / 181
  • Number of attempts: 11
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: 13
  • Position: #15 / 129
  • Number of attempts: 8
Copy punctuation - 416 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 30
  • Position: #39 / 105
  • Number of attempts: 6
Deleting text - 215 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #54 / 72
  • Number of attempts: 1
Paste a column after a column - 2501 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #187 / 546
  • Number of attempts: 4
Anton
Github:

entered into 8 challenges

contributed 0 challenges