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):
13
#331 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 02:54PM

13
#332 - Rory Smith / @alan0buchanan

09/14/2021 at 09:44PM

13
#333 - Scott Berger / @scottberger

09/26/2021 at 05:00AM

13
#334 - Jon Powers / @JonKPowers

10/22/2021 at 12:35AM

13
#335 - Ken / @kenc_

01/20/2022 at 06:25AM

13
#336 - emilio / @emilioemmanueI

02/17/2022 at 09:32PM

13
#337 - Yochem van Rosmalen / @yoch3m

03/11/2022 at 06:14PM

13
#338 - Wojtic / @Wojtic1

03/31/2022 at 02:04PM

13
#339 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 07:00AM

13
#340 - George Granberry / @JudgeJerj

06/26/2022 at 04:20PM

13
#341 - Brandon / @Brandon10678836

08/30/2022 at 04:13PM

13
#342 - James Marshall / @astrophd

10/12/2022 at 06:29PM

13
#343 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 10:18PM

13
#344 - James / @Dronak

10/23/2022 at 04:00AM

13
#345 - Dank City / @ddankcity

12/08/2022 at 06:26PM

13
#346 - Vinay Sridhar / @kewllip

03/26/2023 at 10:53AM

13
#347 - Divvy C. / @divvy_c

08/13/2023 at 12:44PM

13
#348 - Chris Braissant / @braissac

10/18/2023 at 08:32PM

13
#349 - rayx / @ray-x

12/08/2023 at 10:14AM

13
#350 - armaninux / @armaninux

04/06/2024 at 01:00PM

13
#351 - Kevin Traver / @kevintraver

04/10/2024 at 04:37PM

13
#352 - Elliot Schemmel / @regulated

10/07/2024 at 08:25PM

14
#353 - Robert Blackwell / @blackfromchina

02/24/2021 at 02:01AM

14
#354 - Tobia Bocchi / @BocchiTobia

02/24/2021 at 03:30PM

14
#355 - arussel / @arussel7

02/24/2021 at 05:20PM

14
#356 - Daniel Andersson / @AnderssonDanzig

02/27/2021 at 10:56AM

14
#357 - Kml / @ptrfnct

02/27/2021 at 08:51PM

14
#358 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:51AM

14
#359 - Boris / @borisnimcevic

03/14/2021 at 10:37PM

14
#360 - Daniel Qu / @danielq9871

05/08/2021 at 03:55PM