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 - 2668 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 / 578
  • Number of attempts: 7
HS exam question - 1613 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 80
  • Position: #274 / 422
  • Number of attempts: 1
Reformat symbols in list - 1658 entries

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

  • Best score: 24
  • Best player score: 29
  • Position: #187 / 357
  • Number of attempts: 5
Satisfy the go linter - 2487 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 / 496
  • Number of attempts: 12
Simple, Practical, and Common - 34012 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 / 7513
  • Number of attempts: 7
prepend * to every non-blank line - 6395 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #908 / 1562
  • Number of attempts: 6
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 30
  • Position: #3693 / 3904
  • Number of attempts: 1
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #662 / 3098
  • Number of attempts: 8
multiple cursor alternative - 1591 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: #344 / 388
  • Number of attempts: 2
Just the middle - 11616 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2544 / 4255
  • Number of attempts: 4
Array transposition - 2481 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 30
  • Position: #384 / 461
  • Number of attempts: 1
I forgot quotes - 16237 entries

Oops.

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

entered into 12 challenges

contributed 0 challenges