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

504 active golfers, 1866 entries

Leaderboard (lowest score wins):
17
#421 - Peter Szerzo / @peterszerzo

07/04/2023 at 02:54PM

17
#422 - Michael Wiedfellner / @wiedfellne94556

09/13/2023 at 05:16PM

17
#423 - Marius Ropotica / @cipmar

03/30/2024 at 05:55AM

18
#424 - Juan Pablo Arias / @JuanPaAriasV

02/23/2021 at 09:56PM

18
#425 - Jorel / @J3r137

02/28/2021 at 03:24PM

18
#426 - Flor Zanetta / @flor_z

03/03/2021 at 08:54PM

18
#427 - ktenzin / @ktenzin

04/04/2021 at 06:57PM

18
#428 - David Staley / @DavidStaley2

08/31/2021 at 12:12AM

18
#429 - 김현태 / @rgxrgx

01/27/2022 at 12:31AM

18
#430 - Faezix / @Faeziix

02/21/2022 at 01:34PM

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

05/21/2022 at 09:54AM

18
#432 - Milan Blažek / @Somin13

06/07/2023 at 02:32PM

18
#433 - Victor Liu / @alsoMee2

09/28/2023 at 04:22PM

18
#434 - 으앙 / @meri2727

10/11/2023 at 11:52AM

18
#435 - Supreme Paudel / @paudsu01

06/03/2024 at 06:14PM

19
#436 - Tai Le / @letientai299

02/23/2021 at 08:06PM

19
#437 - Arvindh / @spccetime

02/27/2021 at 05:57AM

19
#438 - Cristian Perez Jensen / @Cristia70033867

03/03/2021 at 12:27AM

19
#439 - Gabriel Brousset / @GabBrousset

03/05/2021 at 05:02PM

19
#440 - John / @John18352044

03/09/2021 at 11:19AM

19
#441 - thiago viana / @thide11

03/15/2021 at 04:38AM

19
#442 - ouuan / @ouuan

03/20/2021 at 03:30PM

19
#443 - Nikita Evdokimov / @EvdokimovN

05/13/2021 at 02:44PM

19
#444 - Roman Matzutt / @matzutt

06/13/2021 at 01:50PM

19
#445 - Aastha Grover / @awaitingzenith

06/19/2021 at 05:43PM

19
#446 - Lucas Hourquin / @LHourquin

06/24/2021 at 01:42AM

19
#447 - Jean-Francois Parent / @hacker_pyrat

08/01/2021 at 06:14PM

19
#448 - Darius Smaliukas / @daraz999

11/04/2021 at 03:31PM

19
#449 - Seonu Kim / @SeonuvonK

01/11/2022 at 08:29AM

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

04/13/2022 at 10:20PM