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 - 33724 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: #4936 / 7442
  • Number of attempts: 2
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 14
  • Position: #758 / 1274
  • Number of attempts: 3
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2274 / 3870
  • Number of attempts: 7
Swap values inside brackets - 2511 entries

Easy challenge.

  • Best score: 13
  • Best player score: 16
  • Position: #271 / 583
  • Number of attempts: 7
V to the i - 4813 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1389 / 3072
  • Number of attempts: 1
Com(m)a Trouble - 3875 entries

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

  • Best score: 12
  • Best player score: 19
  • Position: #637 / 876
  • Number of attempts: 1
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #834 / 1881
  • 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 - 1521 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: #279 / 381
  • Number of attempts: 4
Copy three lines - 2875 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 / 641
  • 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 - 2227 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 / 677
  • Number of attempts: 1
Line under headers - 2059 entries

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

  • Best score: 24
  • Best player score: 40
  • Position: #445 / 507
  • Number of attempts: 1
Increment each number - 1025 entries

Increment each number individually by one

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

had trouble with something similar

  • Best score: 19
  • Best player score: 23
  • Position: #103 / 142
  • Number of attempts: 2
I forgot quotes - 16022 entries

Oops.

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

entered into 18 challenges

contributed 0 challenges