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

Remove line numbers - 95 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 12
  • Best player score: 12
  • Position: #11 / 34
  • Number of attempts: 2
Many duplicates - 1054 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #237 / 343
  • Number of attempts: 5
delete swap - 1279 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #273 / 405
  • Number of attempts: 1
Making 3 line function a one liner. - 290 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #161 / 183
  • Number of attempts: 1
Add quotes to ansible playbook - 852 entries

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

  • Best score: 8
  • Best player score: 8
  • Position: #86 / 269
  • Number of attempts: 4
Multiline to Single Line - 590 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #227 / 264
  • Number of attempts: 1
Simple, Practical, and Common - 33240 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2387 / 7331
  • Number of attempts: 2
One number per line - 18559 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #764 / 3830
  • Number of attempts: 5
citizen_hacks_2019_challenge2 - 187 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #64 / 97
  • Number of attempts: 1
V to the i - 4717 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #791 / 1874
  • Number of attempts: 2
Add semicolons - 10744 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #759 / 3030
  • Number of attempts: 3
Wrap the text of an email message to 79 characters - 653 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #289 / 377
  • Number of attempts: 2
citizen_hacks_2019_challenge3 - 33 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Position: #29 / 30
  • Number of attempts: 1
citizen_hacks_2019_part4 - 12 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 38
  • Best player score: 41
  • Position: #7 / 8
  • Number of attempts: 2
Flip the bit - 118 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #36 / 69
  • Number of attempts: 1
Just the middle - 11318 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1501 / 4152
  • Number of attempts: 2
For all cases. - 135 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #85 / 97
  • Number of attempts: 1
Remember VimGolf Rules ! - 254 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #41 / 136
  • Number of attempts: 3
Sorting a glossary - 118 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 6
  • Position: #70 / 76
  • Number of attempts: 2
Align commas - 1049 entries

There are 15,000 aligning challenges on vimgolf.com, and they're all exactly the same. I hope this one is a little different.

  • Best score: 11
  • Best player score: 11
  • Position: #97 / 241
  • Number of attempts: 1
citizen_hacks_2019_challenge4 - 85 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 5
  • Best player score: 5
  • Position: #50 / 59
  • Number of attempts: 1
citizen_hacks_2019_challenge5 - 132 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 6
  • Best player score: 6
  • Position: #46 / 71
  • Number of attempts: 2
citizen_hacks_2019_challenge6 - 56 entries

For the Citizen Hacks 2019 Vim competition.

  • Best score: 3
  • Best player score: 3
  • Position: #43 / 45
  • Number of attempts: 1
Join 'em - 243 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #19 / 144
  • Number of attempts: 1
Delete to the end of the current line - 729 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #254 / 359
  • Number of attempts: 1
Mirror Symmetry - 793 entries

Add backslashes.

  • Best score: 7
  • Best player score: 7
  • Position: #94 / 265
  • Number of attempts: 6
unknown command - 154 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #66 / 80
  • Number of attempts: 1
I forgot quotes - 15880 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1131 / 4146
  • Number of attempts: 1
learn vim in short time - 225 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #127 / 155
  • Number of attempts: 2
Where should I put the Newline? - 857 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 7
  • Position: #219 / 429
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10584 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1598 / 3653
  • Number of attempts: 2
Words in parens - 12821 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #15 / 3938
  • Number of attempts: 7
Word frequency alignment - 273 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #120 / 156
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1550 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 8
  • Position: #127 / 435
  • Number of attempts: 9
SFD-ROC: ROT13 Phonics - 96 entries

A is for apple, b is for ball, etc... This familiar phonics poem has been rotated 13 characters. Make the letter match the word.

  • Best score: 6
  • Best player score: 6
  • Position: #62 / 70
  • Number of attempts: 4
Let's play some Ivmgolf - 1068 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #138 / 436
  • Number of attempts: 2
citizen_hacks_2019_challenge1 - 46 entries

For the Citizen Hacks 2019 Vim competition

  • Best score: 5
  • Best player score: 5
  • Position: #35 / 40
  • Number of attempts: 1
Remove semicolons after expressions - 605 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 6
  • Position: #132 / 253
  • Number of attempts: 6
The meaning - 543 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #315 / 350
  • Number of attempts: 1
Context insensitive completion 0 - 492 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 7
  • Best player score: 7
  • Position: #117 / 229
  • Number of attempts: 4
Almost encrypted - 196 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #125 / 144
  • Number of attempts: 1
Mohammad Apel Mahmod
Twitter2:

Full Stack JavaScript Developer - Loves to automate the boring stuff

entered into 41 challenges

contributed 0 challenges