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

Simple, Practical, and Common - 33552 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: 29
  • Position: #4916 / 7401
  • Number of attempts: 2
Swap values - 4606 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #754 / 1265
  • Number of attempts: 3
One number per line - 18705 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2270 / 3855
  • Number of attempts: 7
Swap values inside brackets - 2480 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #266 / 575
  • Number of attempts: 7
V to the i - 4796 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Position: #719 / 1891
  • Number of attempts: 3
Add semicolons - 10841 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1385 / 3058
  • Number of attempts: 1
Com(m)a Trouble - 3780 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 19
  • Position: #624 / 855
  • Number of attempts: 1
Box it - 7897 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #832 / 1872
  • Number of attempts: 2
Cool or not? - 829 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 20
  • Position: #160 / 230
  • Number of attempts: 5
multiple cursor alternative - 1519 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: 23
  • Position: #278 / 380
  • Number of attempts: 4
Copy three lines - 2872 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 18
  • Position: #337 / 640
  • Number of attempts: 1
Preferably without multi-cursor plugin - 540 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 39
  • Position: #100 / 129
  • Number of attempts: 4
Generate a list of numbers - 295 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #112 / 140
  • Number of attempts: 1
One to Ten - 2209 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
  • Position: #80 / 669
  • Number of attempts: 1
Line under headers - 2028 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 40
  • Position: #441 / 499
  • Number of attempts: 1
Increment each number - 1023 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 20
  • Position: #130 / 248
  • Number of attempts: 5
move titles next to url, in quotes - 529 entries

had trouble with something similar

  • Best score: 19
  • Best player score: 23
  • Position: #101 / 139
  • Number of attempts: 2
I forgot quotes - 15956 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Position: #3356 / 4171
  • Number of attempts: 1
Nicolas Daval
Twitter:

entered into 18 challenges

contributed 0 challenges