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):
17
#421 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 12:44AM

17
#422 - Jonathan Elliott / @jon__elliott

05/04/2022 at 10:11AM

17
#423 - potatol33t / @potatol33t

08/07/2022 at 12:15PM

17
#424 - 우정민 / @jeongmin2021

10/02/2022 at 08:08PM

17
#425 - jimmarq / @jimmarq

10/27/2022 at 04:55PM

17
#426 - Zhou Jiazheng / @ZhouJiazheng0

02/18/2023 at 10:01AM

17
#427 - Spam Mail / @mrfdot

05/26/2023 at 01:25AM

17
#428 - Peter Szerzo / @peterszerzo

07/04/2023 at 02:54PM

17
#429 - Michael Wiedfellner / @wiedfellne94556

09/13/2023 at 05:16PM

17
#430 - Marius Ropotica / @cipmar

03/30/2024 at 05:55AM

18
#431 - Juan Pablo Arias / @JuanPaAriasV

02/23/2021 at 09:56PM

18
#432 - Jorel / @J3r137

02/28/2021 at 03:24PM

18
#433 - Flor Zanetta / @flor_z

03/03/2021 at 08:54PM

18
#434 - ktenzin / @ktenzin

04/04/2021 at 06:57PM

18
#435 - David Staley / @DavidStaley2

08/31/2021 at 12:12AM

18
#436 - 김현태 / @rgxrgx

01/27/2022 at 12:31AM

18
#437 - Faezix / @Faeziix

02/21/2022 at 01:34PM

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

05/21/2022 at 09:54AM

18
#439 - Milan Blažek / @Somin13

06/07/2023 at 02:32PM

18
#440 - Victor Liu / @alsoMee2

09/28/2023 at 04:22PM

18
#441 - 으앙 / @meri2727

10/11/2023 at 11:52AM

18
#442 - Supreme Paudel / @paudsu01

06/03/2024 at 06:14PM

19
#443 - Tai Le / @letientai299

02/23/2021 at 08:06PM

19
#444 - Arvindh / @spccetime

02/27/2021 at 05:57AM

19
#445 - Cristian Perez Jensen / @Cristia70033867

03/03/2021 at 12:27AM

19
#446 - Gabriel Brousset / @GabBrousset

03/05/2021 at 05:02PM

19
#447 - John / @John18352044

03/09/2021 at 11:19AM

19
#448 - thiago viana / @thide11

03/15/2021 at 04:38AM

19
#449 - ouuan / @ouuan

03/20/2021 at 03:30PM

19
#450 - Nikita Evdokimov / @EvdokimovN

05/13/2021 at 02:44PM