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 510 remaining solutions by signing in and submitting your own entry
#511 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

511 active golfers, 1900 entries

Leaderboard (lowest score wins):
10
#1 - Jon Krause / @jkrause314

02/22/2021 at 08:09PM

10
#2 - Hugh / @haquaman

02/22/2021 at 08:27PM

10
#3 - John Braxler / @braxler

02/22/2021 at 09:32PM

10
#4 - Mark Blakeney / @bulletmark

02/22/2021 at 09:57PM

10
#5 - Jonáš Šerých / @serycjon

02/22/2021 at 10:55PM

10
#6 - Duy Arsenal / @hotboyarsenal

02/23/2021 at 01:50AM

10
#7 - Martin LOUAZEL / @Zbrahark

02/23/2021 at 07:54AM

10
#8 - notking / @duongvantri1998

02/23/2021 at 08:26AM

10
#9 - Ryan Nevius / @ryannevius

02/23/2021 at 09:15AM

10
#10 - Axel Forsman / @axelf41

02/23/2021 at 10:50AM

10
#11 - thevan96 / @thevan96gmailc1

02/23/2021 at 03:17PM

10
#12 - Ryan Brate / @brate_ryan

02/23/2021 at 04:44PM

10
#13 - Sylvain Dangin / @Sylvaner03

02/23/2021 at 08:31PM

10
#14 - "Smylers" / @Smylers2

02/23/2021 at 10:35PM

10
#15 - hamb / @hamb88140219

02/24/2021 at 01:13AM

10
#16 - Vimian Golfer / @GolferVimian

02/24/2021 at 09:30AM

10
#17 - Jonas Pauthier / @Jonas_Pauthier

02/24/2021 at 12:19PM

10
#18 - Filipe Brandenburger / @filbranden

02/25/2021 at 12:05AM

10
#19 - Askhento / @Askhento1

02/25/2021 at 09:28AM

10
#20 - geosucker / @geosucker

02/25/2021 at 03:08PM

10
#21 - Ashneal Powell / @AshnealPowell

02/26/2021 at 02:43AM

10
#22 - Carlos Arcia / @Carlos_1827

02/26/2021 at 08:41PM

10
#23 - Roger Stoltz / @rogsto1

02/27/2021 at 02:01PM

10
#24 - Quentin Leroy / @qnleroy

02/28/2021 at 07:25PM

10
#25 - Marcio M Pereira / @iviarcio

02/28/2021 at 09:06PM

10
#26 - WladDalwM / @WladDalwM

03/01/2021 at 10:22AM

10
#27 - Fabio Papa / @fapapa

03/01/2021 at 05:29PM

10
#28 - Eric Söderström / @eksoderstrom

03/01/2021 at 07:24PM

10
#29 - foobarbazqux12345 / @foobarbazqux121

03/02/2021 at 03:11AM

10
#30 - Rajit Singh / @rajitbsingh

03/02/2021 at 06:03PM