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 - 32746 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: 28
  • Position: #4261 / 7235
  • Number of attempts: 3
V to the i - 4596 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #614 / 1837
  • Number of attempts: 1
Applying same text modification in several lines - 2699 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 13
  • Position: #72 / 803
  • Number of attempts: 3
Preferably without multi-cursor plugin - 459 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: 36
  • Position: #62 / 114
  • Number of attempts: 1
Number Sort - 281 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #86 / 149
  • Number of attempts: 1
Team names - 1754 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #363 / 564
  • Number of attempts: 3
Missing Library and a Typo - 815 entries

I forgot to add a c library, please add it for me. Also I'm bad at typing so fix my typo too.

  • Best score: 15
  • Best player score: 15
  • Position: #19 / 200
  • Number of attempts: 4
Order and join - 846 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 12
  • Position: #149 / 233
  • Number of attempts: 3
comments galore - 954 entries

Basic comment reformatting

  • Best score: 10
  • Best player score: 10
  • Position: #267 / 405
  • Number of attempts: 5
Delete to the end of the current line - 708 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #10 / 346
  • Number of attempts: 1
Change your calendar - 278 entries

Happy New Year!

  • Best score: 18
  • Best player score: 18
  • Position: #5 / 76
  • Number of attempts: 9
Mute the second method of this script - 429 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #127 / 228
  • Number of attempts: 2
I forgot quotes - 15639 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2939 / 4095
  • Number of attempts: 1
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #825 / 1099
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2554 / 3626
  • Number of attempts: 1
Vertical Limit - 2300 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 29
  • Position: #598 / 701
  • Number of attempts: 1
The holy-grail may help - 304 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #146 / 190
  • Number of attempts: 1
Jonathan Gin
Twitter:

entered into 17 challenges

contributed 0 challenges