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

Swap values - 4440 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #478 / 1241
  • Number of attempts: 5
One number per line - 18395 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 16
  • Position: #934 / 3793
  • Number of attempts: 9
Swap values inside brackets - 2433 entries

Easy challenge.

  • Best score: 14
  • Best player score: 23
  • Position: #460 / 561
  • Number of attempts: 3
V to the i - 4641 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #656 / 1857
  • Number of attempts: 2
Add semicolons - 10545 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #39 / 2989
  • Number of attempts: 8
Bad Copy Syntax - 1938 entries

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

  • Best score: 18
  • Best player score: 19
  • Position: #65 / 493
  • Number of attempts: 8
remove lines containing the word "reader" - 3454 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #217 / 1121
  • Number of attempts: 2
Box it - 7682 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 27
  • Position: #1109 / 1836
  • Number of attempts: 1
Team names - 1777 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Position: #235 / 570
  • Number of attempts: 5
One to Ten - 2095 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: 13
  • Position: #349 / 642
  • Number of attempts: 3
Join 'em - 229 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #46 / 135
  • Number of attempts: 2
Happy TvvO - 392 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #138 / 195
  • Number of attempts: 1
I forgot quotes - 15748 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1842 / 4116
  • Number of attempts: 5
quotes inside quotes - 3030 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: #472 / 1045
  • Number of attempts: 3
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 33
  • Position: #3861 / 3919
  • Number of attempts: 1
Context Insensitive completion 1 - 436 entries

Finish writing this simple Python HTTP server.

  • Best score: 18
  • Best player score: 40
  • Position: #219 / 223
  • Number of attempts: 2
Hugo Tai
Twitter:

entered into 16 challenges

contributed 0 challenges