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
Here’s the thing about Vim.
Ex mode too, and it’s magic! 
Ex commands, there be dragons!
Until you realize it can help you be more efficient.
Learning about regexes sounds boring,
End file
Here’s 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 it’s magic! 

View Diff

2,4d1
< Ex mode too, and it’s 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 it’s 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 394 remaining solutions by signing in and submitting your own entry
#395 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

395 active golfers, 1436 entries

Leaderboard (lowest score wins):
18
#331 - Juan Pablo Arias / @JuanPaAriasV

02/23/2021 at 09:56PM

18
#332 - Jorel / @J3r137

02/28/2021 at 03:24PM

18
#333 - Flor Zanetta / @flor_z

03/03/2021 at 08:54PM

18
#334 - ktenzin / @ktenzin

04/04/2021 at 06:57PM

18
#335 - David Staley / @DavidStaley2

08/31/2021 at 12:12AM

18
#336 - 김현태 / @rgxrgx

01/27/2022 at 12:31AM

18
#337 - Faezix / @Faeziix

02/21/2022 at 01:34PM

18
#338 - محمد محمود / @Mo__Saleh_

05/21/2022 at 09:54AM

19
#339 - Tai Le / @letientai299

02/23/2021 at 08:06PM

19
#340 - Arvindh / @spccetime

02/27/2021 at 05:57AM

19
#341 - Cristian Perez Jensen / @Cristia70033867

03/03/2021 at 12:27AM

19
#342 - Gabriel Brousset / @GabBrousset

03/05/2021 at 05:02PM

19
#343 - John / @John18352044

03/09/2021 at 11:19AM

19
#344 - thiago viana / @thide11

03/15/2021 at 04:38AM

19
#345 - ouuan / @ouuan

03/20/2021 at 03:30PM

19
#346 - Nikita Evdokimov / @EvdokimovN

05/13/2021 at 02:44PM

19
#347 - Roman Matzutt / @matzutt

06/13/2021 at 01:50PM

19
#348 - Aastha Grover / @awaitingzenith

06/19/2021 at 05:43PM

19
#349 - Lucas Hourquin / @LHourquin

06/24/2021 at 01:42AM

19
#350 - Jean-Francois Parent / @hacker_pyrat

08/01/2021 at 06:14PM

19
#351 - Darius Smaliukas / @daraz999

11/04/2021 at 03:31PM

19
#352 - Seonu Kim / @SeonuvonK

01/11/2022 at 08:29AM

19
#353 - Никита Семёнов / @NiKoS1707

04/13/2022 at 10:20PM

20
#354 - NewErA / @NewErA79506535

02/24/2021 at 12:44AM

20
#355 - Borna Sadeghi / @borna_sadeghi

03/01/2021 at 08:50PM

20
#356 - 지준혁 / @CfX5fveOHOlydj2

03/02/2021 at 01:20AM

20
#357 - tarsiec / @tarsiec

03/02/2021 at 03:01PM

20
#358 - P. Silintziris / @silintzir

03/07/2021 at 12:37AM

20
#359 - Prof. Sucrose / @ProfSucrose

03/10/2021 at 11:52PM

20
#360 - Cameron Voss / @CameronVoss11

03/11/2021 at 03:10PM