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

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

  • Best score: 8
  • Best player score: 12
  • Position: #13 / 159
  • Number of attempts: 2
Many duplicates - 1284 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #245 / 421
  • Number of attempts: 5
delete swap - 1574 entries

delete all swap

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

Simple challenge for frequent action while programming.

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

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

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

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

  • Best score: 5
  • Best player score: 5
  • Position: #227 / 297
  • Number of attempts: 1
Simple, Practical, and Common - 33419 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 / 7374
  • Number of attempts: 2
One number per line - 18635 entries

Just give me the numbers.

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

For the Citizen Hacks 2019 Vim competition.

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

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

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

Simply add a semicolon at the end of each line

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

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

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

For the Citizen Hacks 2019 Vim competition.

  • Best score: 4
  • Best player score: 4
  • Position: #29 / 33
  • 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 - 123 entries

Change the specific 0 to a 1.

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

Delete the instructions at the top and bottom.

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

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

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

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #41 / 139
  • Number of attempts: 3
Sorting a glossary - 124 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 / 79
  • 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 - 89 entries

For the Citizen Hacks 2019 Vim competition.

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

For the Citizen Hacks 2019 Vim competition.

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

For the Citizen Hacks 2019 Vim competition.

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

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #19 / 150
  • Number of attempts: 1
Delete to the end of the current line - 792 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 / 386
  • Number of attempts: 1
Mirror Symmetry - 803 entries

Add backslashes.

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

I want change 5 words

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

Oops.

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

so happy to learn vim.because vim is awesome

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

Help me put the newline.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #15 / 3948
  • Number of attempts: 7
Word frequency alignment - 278 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 / 159
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1583 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 / 440
  • Number of attempts: 9
SFD-ROC: ROT13 Phonics - 99 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 / 72
  • Number of attempts: 4
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

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

For the Citizen Hacks 2019 Vim competition

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

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

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

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #315 / 357
  • Number of attempts: 1
Context insensitive completion 0 - 519 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: 6
  • Best player score: 7
  • Position: #118 / 233
  • Number of attempts: 4
Almost encrypted - 199 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #125 / 145
  • 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