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 - 33982 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: 23
  • Position: #2726 / 7508
  • Number of attempts: 6
One number per line - 18894 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #1004 / 3901
  • Number of attempts: 7
Swap values inside brackets - 2546 entries

Easy challenge.

  • Best score: 13
  • Best player score: 16
  • Position: #267 / 592
  • Number of attempts: 4
Add semicolons - 10951 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1204 / 3096
  • Number of attempts: 4
Bad Copy Syntax - 2081 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 20
  • Position: #252 / 542
  • Number of attempts: 1
remove lines containing the word "reader" - 3646 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #722 / 1183
  • Number of attempts: 1
Box it - 7999 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 22
  • Position: #521 / 1899
  • Number of attempts: 4
multiple cursor alternative - 1556 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: 20
  • Position: #182 / 386
  • Number of attempts: 5
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: #347 / 645
  • Number of attempts: 2
Search and Replace 0 - 5124 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #628 / 1670
  • Number of attempts: 3
Just the middle - 11611 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 9
  • Position: #3644 / 4252
  • Number of attempts: 1
Team names - 1860 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #316 / 595
  • Number of attempts: 2
Vice versa - 8011 entries

Little role switching.

  • Best score: 12
  • Best player score: 16
  • Position: #1413 / 2153
  • 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: #228 / 687
  • Number of attempts: 3
Line under headers - 2095 entries

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

  • Best score: 24
  • Best player score: 26
  • Position: #66 / 515
  • Number of attempts: 3
Collect List - 4333 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 18
  • Position: #1090 / 1197
  • Number of attempts: 1
I forgot quotes - 16185 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2354 / 4221
  • Number of attempts: 1
-a-b-c- - 3237 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Position: #1036 / 1145
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10749 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 13
  • Position: #2630 / 3712
  • Number of attempts: 1
quotes inside quotes - 3200 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 15
  • Position: #501 / 1091
  • Number of attempts: 2
Words in parens - 13033 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1789 / 3987
  • Number of attempts: 3
Vertical Limit - 2634 entries

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

  • Best score: 21
  • Best player score: 26
  • Position: #505 / 776
  • Number of attempts: 1
Switch function arguments - 2204 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Position: #437 / 681
  • Number of attempts: 1
Simple text editing with Vim - 13576 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Position: #1858 / 3892
  • Number of attempts: 3
hokonch
Twitter:

College student/Japanese/

entered into 24 challenges

contributed 0 challenges