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 - 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: 29
  • Position: #4965 / 7513
  • Number of attempts: 2
Swap values - 4705 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #764 / 1293
  • Number of attempts: 3
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2290 / 3904
  • Number of attempts: 7
Swap values inside brackets - 2551 entries

Easy challenge.

  • Best score: 13
  • Best player score: 16
  • Position: #275 / 594
  • Number of attempts: 7
V to the i - 4883 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1399 / 3098
  • Number of attempts: 1
Com(m)a Trouble - 3993 entries

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

  • Best score: 12
  • Best player score: 19
  • Position: #661 / 910
  • Number of attempts: 1
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #844 / 1901
  • Number of attempts: 2
Cool or not? - 881 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 20
  • Position: #165 / 237
  • Number of attempts: 5
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: 23
  • Position: #284 / 388
  • Number of attempts: 4
Copy three lines - 2923 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #340 / 647
  • Number of attempts: 1
Preferably without multi-cursor plugin - 584 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: #105 / 135
  • Number of attempts: 4
Generate a list of numbers - 312 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #114 / 144
  • Number of attempts: 1
One to Ten - 2258 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 / 688
  • Number of attempts: 1
Line under headers - 2095 entries

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

  • Best score: 24
  • Best player score: 40
  • Position: #453 / 515
  • Number of attempts: 1
Increment each number - 1067 entries

Increment each number individually by one

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

had trouble with something similar

  • Best score: 19
  • Best player score: 23
  • Position: #106 / 149
  • Number of attempts: 2
I forgot quotes - 16237 entries

Oops.

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

entered into 18 challenges

contributed 0 challenges