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

Yo To Hello - 698 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 4
switch variable - 4777 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10331 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Swap values - 4294 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 16
  • Number of attempts: 1
Hello ${world} - 256 entries

Migrate a JavaScript String from concatenation to ES6 interpolation.

  • Best score: 24
  • Best player score: 33
  • Number of attempts: 1
I forgot quotes - 15136 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 1
Just the middle - 10822 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 4
One to Ten - 1900 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
  • Number of attempts: 3
Copy three lines - 2615 entries

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

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 3
Bad Copy Syntax - 1778 entries

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

  • Best score: 10
  • Best player score: 25
  • Number of attempts: 1
-a-b-c- - 3004 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Number of attempts: 2
Add semicolons - 9322 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 2
V to the i - 4507 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Increment, increment, increment.... - 525 entries

Vim likes macros

  • Best score: 10
  • Best player score: 13
  • Number of attempts: 2
prepend * to every non-blank line - 4842 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 4
quotes inside quotes - 2973 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
  • Number of attempts: 1
abcd > a b c d - 248 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 1
Words in parens - 12378 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 3
One number per line - 17465 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Number of attempts: 5
Edan Sneh
Twitter:

entered into 19 challenges

contributed 0 challenges