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 - 1472 entries

Quick and easy

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

delete all swap

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

Simply Turn Yo To Hello

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

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Position: #1021 / 1285
  • Number of attempts: 1
prepend * to every non-blank line - 6380 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #496 / 1557
  • Number of attempts: 4
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1897 / 3893
  • Number of attempts: 5
V to the i - 4833 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1380 / 1904
  • Number of attempts: 2
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1925 / 3087
  • Number of attempts: 2
Bad Copy Syntax - 2072 entries

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

  • Best score: 18
  • Best player score: 25
  • Position: #386 / 539
  • Number of attempts: 1
Copy three lines - 2882 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #353 / 642
  • Number of attempts: 3
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3022 / 4234
  • 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 - 2243 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: #479 / 683
  • Number of attempts: 3
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2691 / 4208
  • Number of attempts: 1
-a-b-c- - 3225 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #821 / 1140
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10721 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2483 / 3704
  • Number of attempts: 1
quotes inside quotes - 3185 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: #887 / 1086
  • Number of attempts: 1
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1127 / 3979
  • Number of attempts: 3
abcd > a b c d - 299 entries

transform the single spaces into 4 spaces repeat for each line

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

how fast can you switch two variable ?

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

Vim likes macros

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

entered into 21 challenges

contributed 0 challenges