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 values - 4216 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
One to Ten - 1789 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
Satisfy the go linter - 443 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 21
  • Number of attempts: 4
Increment each number - 775 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 16
  • Number of attempts: 4
Capitalize the Names - 132 entries

I want to capitalize the names in quotes, but just the people's names, not the file names.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 4
Applying same text modification in several lines - 2516 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 3
Multiline to Single Line - 134 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 1
Bob
Twitter:

entered into 7 challenges

contributed 0 challenges