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

Paste a column after a column - 1136 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #16 / 242
  • Number of attempts: 7
HS exam question - 1149 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 80
  • Position: #202 / 312
  • Number of attempts: 1
Reformat symbols in list - 1037 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 29
  • Position: #121 / 236
  • Number of attempts: 5
Satisfy the go linter - 2076 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: 20
  • Position: #72 / 422
  • Number of attempts: 12
Simple, Practical, and Common - 33142 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2275 / 7309
  • Number of attempts: 7
prepend * to every non-blank line - 6120 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 14
  • Position: #863 / 1493
  • Number of attempts: 6
One number per line - 18498 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 30
  • Position: #3618 / 3816
  • Number of attempts: 1
Add semicolons - 10720 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #662 / 3023
  • Number of attempts: 8
multiple cursor alternative - 1453 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 30
  • Position: #328 / 372
  • Number of attempts: 2
Just the middle - 11289 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2518 / 4144
  • Number of attempts: 4
Array transposition - 2321 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 30
  • Position: #364 / 434
  • Number of attempts: 1
I forgot quotes - 15852 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2558 / 4136
  • Number of attempts: 4
rstcruzo
Twitter:

entered into 12 challenges

contributed 0 challenges