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 - 33990 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: #4962 / 7510
  • Number of attempts: 2
Swap values - 4704 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #763 / 1292
  • Number of attempts: 3
One number per line - 18900 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2289 / 3903
  • Number of attempts: 7
Swap values inside brackets - 2549 entries

Easy challenge.

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

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

  • Best score: 7
  • Best player score: 7
  • Position: #719 / 1913
  • 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? - 857 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 20
  • Position: #164 / 236
  • Number of attempts: 5
multiple cursor alternative - 1557 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: #283 / 387
  • Number of attempts: 4
Copy three lines - 2911 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #339 / 645
  • Number of attempts: 1
Preferably without multi-cursor plugin - 562 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: #104 / 134
  • Number of attempts: 4
Generate a list of numbers - 304 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 15
  • Position: #114 / 143
  • Number of attempts: 1
One to Ten - 2249 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 / 687
  • 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 - 562 entries

had trouble with something similar

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

Oops.

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

entered into 18 challenges

contributed 0 challenges