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 - 786 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: #15 / 209
  • Number of attempts: 2
Many duplicates - 1489 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #254 / 484
  • Number of attempts: 5
delete swap - 1912 entries

delete all swap

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

Simple challenge for frequent action while programming.

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

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

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

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

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

Just give me the numbers.

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

For the Citizen Hacks 2019 Vim competition.

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

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

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

Simply add a semicolon at the end of each line

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

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

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

For the Citizen Hacks 2019 Vim competition.

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

For the Citizen Hacks 2019 Vim competition

  • Best score: 37
  • Best player score: 41
  • Position: #11 / 14
  • Number of attempts: 2
Flip the bit - 144 entries

Change the specific 0 to a 1.

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

Delete the instructions at the top and bottom.

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

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

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

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #41 / 149
  • Number of attempts: 3
Sorting a glossary - 138 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 / 85
  • Number of attempts: 2
Align commas - 1134 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 / 250
  • Number of attempts: 1
citizen_hacks_2019_challenge4 - 110 entries

For the Citizen Hacks 2019 Vim competition.

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

For the Citizen Hacks 2019 Vim competition.

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

For the Citizen Hacks 2019 Vim competition.

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

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #19 / 157
  • Number of attempts: 1
Delete to the end of the current line - 882 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 / 418
  • Number of attempts: 1
Mirror Symmetry - 845 entries

Add backslashes.

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

I want change 5 words

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

Oops.

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

so happy to learn vim.because vim is awesome

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

Help me put the newline.

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

A HAPPY NEW YEAR 2014 !

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

We should all ace this, right?

  • Best score: 13
  • Best player score: 13
  • Position: #15 / 3991
  • Number of attempts: 7
Word frequency alignment - 310 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 / 166
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1642 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 / 457
  • Number of attempts: 9
SFD-ROC: ROT13 Phonics - 119 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 / 79
  • Number of attempts: 4
Let's play some Ivmgolf - 1163 entries

Oops, I spelled that wrong.

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

For the Citizen Hacks 2019 Vim competition

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

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

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

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #315 / 368
  • Number of attempts: 1
Context insensitive completion 0 - 607 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: #120 / 256
  • Number of attempts: 4
Almost encrypted - 211 entries

Convert the first paragraph to be even less readable.

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