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

months to html list items - 512 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 26
  • Position: #71 / 143
  • Number of attempts: 1
Populate 3D bone names list - 438 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 26
  • Position: #50 / 114
  • Number of attempts: 1
Surround the 'z' character with brackets, quotes, and print as formatted string. - 478 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #183 / 267
  • Number of attempts: 1
Paste a column after a column - 2229 entries

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

  • Best score: 14
  • Best player score: 27
  • Position: #352 / 481
  • Number of attempts: 2
Many duplicates - 1248 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #340 / 408
  • Number of attempts: 1
Fix the shell script! - 2317 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 34
  • Position: #289 / 538
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1577 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 11
  • Position: #193 / 523
  • Number of attempts: 3
Plotting some variables in python - 1557 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 42
  • Position: #140 / 332
  • Number of attempts: 1

Contributed Challenges

months to html list items - 512 entries

Turn the months into list items.

George Angelopoulos
Github:

entered into 8 challenges

contributed 1 challenges