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

Move to corresponding lines - 257 entries

Move the values to the corresponding lines.

  • Best score: 16
  • Best player score: 29
  • Position: #41 / 58
  • Number of attempts: 2
Rearrange array to single level - 1425 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #32 / 233
  • Number of attempts: 8
Rearrange array to one line - 680 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #26 / 163
  • Number of attempts: 3
Copy punctuation - 536 entries

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

  • Best score: 19
  • Best player score: 25
  • Position: #28 / 137
  • Number of attempts: 5
Column wise pasting - 176 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 24
  • Position: #19 / 40
  • Number of attempts: 1
New teacher - 1197 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 26
  • Position: #140 / 251
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3763 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 17
  • Position: #175 / 807
  • Number of attempts: 8
Simple text editing with Vim - 13013 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #2020 / 3744
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7173 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 49
  • Position: #1387 / 1761
  • Number of attempts: 2
shenyfg
Github:

entered into 9 challenges

contributed 0 challenges