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

Rural Post - 4591 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 14
  • Position: #712 / 1120
  • Number of attempts: 5
Satisfy the go linter - 2482 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 35
  • Position: #424 / 494
  • Number of attempts: 2
Add quotes to ansible playbook - 1039 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 11
  • Position: #285 / 329
  • Number of attempts: 1
Yo To Hello - 1154 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #251 / 535
  • Number of attempts: 4
prepend * to every non-blank line - 6388 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #902 / 1559
  • Number of attempts: 2
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 21
  • Position: #2588 / 3898
  • Number of attempts: 1
V to the i - 4848 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #754 / 1907
  • Number of attempts: 7
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #657 / 3091
  • Number of attempts: 4
Box it - 7997 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 25
  • Position: #1044 / 1897
  • Number of attempts: 7
Copy three lines - 2909 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #296 / 644
  • Number of attempts: 6
Search and Replace 0 - 5089 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1082 / 1658
  • Number of attempts: 3
Team names - 1858 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 18
  • Position: #405 / 594
  • Number of attempts: 4
Vice versa - 7995 entries

Little role switching.

  • Best score: 12
  • Best player score: 20
  • Position: #1901 / 2151
  • Number of attempts: 1
One to Ten - 2246 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: 15
  • Position: #549 / 684
  • Number of attempts: 1
-a-b-c- - 3229 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #297 / 1142
  • Number of attempts: 6
quotes inside quotes - 3191 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: 16
  • Position: #666 / 1088
  • Number of attempts: 2
Alphabet soup - 445 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 26
  • Position: #41 / 111
  • Number of attempts: 4
switch variable - 5110 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1636 / 1758
  • Number of attempts: 1
Ramūnas Musteikis
Twitter:

entered into 18 challenges

contributed 0 challenges