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 60340000c06738000924d803

Inverting Lines

A simple challenge to invert all lines, except the first.

Start file
Heres the thing about Vim.
Ex mode too, and its magic!
Ex commands, there be dragons!
Until you realize it can help you be more efficient.
Learning about regexes sounds boring,
End file
Heres the thing about Vim.
Learning about regexes sounds boring,
Until you realize it can help you be more efficient.
Ex commands, there be dragons!
Ex mode too, and its magic!

View Diff

2,4d1
< Ex mode too, and its magic!
< Ex commands, there be dragons!
< Until you realize it can help you be more efficient.
5a3,5
> Until you realize it can help you be more efficient.
> Ex commands, there be dragons!
> Ex mode too, and its magic!

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 511 remaining solutions by signing in and submitting your own entry
#512 Benjamin / @benjamin_le_ - Score: 73 - 05/21/22 @ 09:11
jjjjyl<Up><Up><Up><Up><Down>Op<BS><Esc>p<BS><Down>ppuuuuggGyyGggphjjjyylljkkkkp,..uujjjkyykkpljjdddddd:x<CR>

0 comments


Created by: @iviarcio

512 active golfers, 1907 entries

Leaderboard (lowest score wins):
10
#91 - Marcin Dostojewski / @MarcinekAGH

07/12/2021 at 07:55PM

10
#92 - pikjes / @pikjes2

07/14/2021 at 03:32PM

10
#93 - すなぎも / @snagimmo

07/15/2021 at 11:08AM

10
#94 - JahmannDev / @JahmannD

07/16/2021 at 12:28AM

10
#95 - Ska / @skaa42

07/17/2021 at 09:32AM

10
#96 - ThatGuyWithAWeirdHat / @Mousakaaa

07/17/2021 at 05:59PM

10
#97 - Sebastien Nicoud / @sebnukem

07/19/2021 at 01:12AM

10
#98 - Bruce Lee / @BruceLeeIII

07/24/2021 at 04:06PM

10
#99 - Sean Gloumeau / @svarq428

07/26/2021 at 11:56PM

10
#100 - lydxn / @lydxn1

07/28/2021 at 10:04PM

10
#101 - chen chang ting / @chen41283922

07/31/2021 at 02:08PM

10
#102 - François / @mortyZZ

08/01/2021 at 06:15PM

10
#103 - Peter Pandorum / @PeterPandorum

08/07/2021 at 09:37PM

10
#104 - ippachi / @ippachi1018

08/08/2021 at 10:04AM

10
#105 - e1mnos / @e1mnos

08/10/2021 at 03:05PM

10
#106 - Ochirsum / @Ochirsum11

08/12/2021 at 01:35PM

10
#107 - Bspammer / @Bspammer

08/14/2021 at 03:32AM

10
#108 - }(⇒){ / @TangerinePlank

08/14/2021 at 09:48AM

10
#109 - mevmev / @mevmev8

08/18/2021 at 09:37AM

10
#110 - quemeraisc / @quemeraisc

08/18/2021 at 02:01PM

10
#111 - Roman Privalov / @RomanPrivalov

08/22/2021 at 12:50AM

10
#112 - Neil Butler / @PinkyinParis

08/23/2021 at 01:45AM

10
#113 - panakin skywalker / @_j3ffrey

08/31/2021 at 02:53PM

10
#114 - Mahabubur Rahman / @microrony

09/14/2021 at 02:27AM

10
#115 - Danila Kutenin / @Danlark1

09/17/2021 at 01:33PM

10
#116 - vimgolf_vinz / @VimgolfV

09/20/2021 at 03:59PM

10
#117 - garry quested / @GQuested

09/30/2021 at 08:34AM

10
#118 - Benny Boy / @bennyboy999

10/02/2021 at 07:08PM

10
#119 - Martin / @qvhzmh

10/06/2021 at 03:08PM

10
#120 - milserk / @milserk

10/13/2021 at 07:30AM