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

Swap function parameters and delete all comments in python. - 1078 entries

Swap function parameters and delete all comments in python.

  • Best score: 19
  • Best player score: 21
  • Position: #83 / 263
  • Number of attempts: 2
Rearrange array to single level - 1832 entries

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

  • Best score: 14
  • Best player score: 33
  • Position: #220 / 308
  • Number of attempts: 1
Copy punctuation - 760 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: #68 / 188
  • Number of attempts: 5
hello-world-vimgolf - 2535 entries

Simple number generation

  • Best score: 6
  • Best player score: 10
  • Position: #346 / 728
  • Number of attempts: 2
yyykt
Github:

entered into 4 challenges

contributed 0 challenges