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

480 active golfers, 1773 entries

Leaderboard (lowest score wins):
17
#391 - Алексей Иванин / @AliakseiIvanin

11/10/2021 at 09:33AM

17
#392 - Ashley Feniello / @AshleyFen

02/22/2022 at 01:23AM

17
#393 - 강태화 / @kangtaehwa1234

03/18/2022 at 08:34AM

17
#394 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 12:44AM

17
#395 - Jonathan Elliott / @jon__elliott

05/04/2022 at 10:11AM

17
#396 - potatol33t / @potatol33t

08/07/2022 at 12:15PM

17
#397 - 우정민 / @jeongmin2021

10/02/2022 at 08:08PM

17
#398 - jimmarq / @jimmarq

10/27/2022 at 04:55PM

17
#399 - Zhou Jiazheng / @ZhouJiazheng0

02/18/2023 at 10:01AM

17
#400 - Spam Mail / @mrfdot

05/26/2023 at 01:25AM

17
#401 - Peter Szerzo / @peterszerzo

07/04/2023 at 02:54PM

17
#402 - Michael Wiedfellner / @wiedfellne94556

09/13/2023 at 05:16PM

18
#403 - Juan Pablo Arias / @JuanPaAriasV

02/23/2021 at 09:56PM

18
#404 - Jorel / @J3r137

02/28/2021 at 03:24PM

18
#405 - Flor Zanetta / @flor_z

03/03/2021 at 08:54PM

18
#406 - ktenzin / @ktenzin

04/04/2021 at 06:57PM

18
#407 - David Staley / @DavidStaley2

08/31/2021 at 12:12AM

18
#408 - 김현태 / @rgxrgx

01/27/2022 at 12:31AM

18
#409 - Faezix / @Faeziix

02/21/2022 at 01:34PM

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

05/21/2022 at 09:54AM

18
#411 - Milan Blažek / @Somin13

06/07/2023 at 02:32PM

18
#412 - Victor Liu / @alsoMee2

09/28/2023 at 04:22PM

18
#413 - 으앙 / @meri2727

10/11/2023 at 11:52AM

19
#414 - Tai Le / @letientai299

02/23/2021 at 08:06PM

19
#415 - Arvindh / @spccetime

02/27/2021 at 05:57AM

19
#416 - Cristian Perez Jensen / @Cristia70033867

03/03/2021 at 12:27AM

19
#417 - Gabriel Brousset / @GabBrousset

03/05/2021 at 05:02PM

19
#418 - John / @John18352044

03/09/2021 at 11:19AM

19
#419 - thiago viana / @thide11

03/15/2021 at 04:38AM

19
#420 - ouuan / @ouuan

03/20/2021 at 03:30PM