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

Many duplicates - 1484 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #78 / 483
  • Number of attempts: 3
delete swap - 1884 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #35 / 578
  • Number of attempts: 1
Yo To Hello - 1155 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #217 / 536
  • Number of attempts: 4
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1025 / 1291
  • Number of attempts: 1
prepend * to every non-blank line - 6390 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #497 / 1560
  • Number of attempts: 4
One number per line - 18896 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1902 / 3902
  • Number of attempts: 5
V to the i - 4864 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1383 / 1912
  • Number of attempts: 2
Add semicolons - 10952 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1932 / 3097
  • Number of attempts: 2
Bad Copy Syntax - 2081 entries

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

  • Best score: 18
  • Best player score: 25
  • Position: #389 / 542
  • Number of attempts: 1
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: #355 / 645
  • Number of attempts: 3
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3026 / 4253
  • Number of attempts: 4
Hello ${world} - 344 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 33
  • Position: #75 / 102
  • 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: 14
  • Position: #481 / 687
  • Number of attempts: 3
I forgot quotes - 16187 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2699 / 4222
  • Number of attempts: 1
-a-b-c- - 3237 entries

Put hyphens everywhere.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2487 / 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: 17
  • Position: #889 / 1091
  • Number of attempts: 1
Words in parens - 13034 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1130 / 3988
  • Number of attempts: 3
abcd > a b c d - 300 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #160 / 229
  • Number of attempts: 1
switch variable - 5120 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #415 / 1761
  • Number of attempts: 4
Increment, increment, increment.... - 705 entries

Vim likes macros

  • Best score: 10
  • Best player score: 13
  • Position: #387 / 415
  • Number of attempts: 2
Edan Sneh
Twitter:

entered into 21 challenges

contributed 0 challenges