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

505 active golfers, 1870 entries

Leaderboard (lowest score wins):
13
#331 - emilio / @emilioemmanueI

02/17/2022 at 09:32PM

13
#332 - Yochem van Rosmalen / @yoch3m

03/11/2022 at 06:14PM

13
#333 - Wojtic / @Wojtic1

03/31/2022 at 02:04PM

13
#334 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 07:00AM

13
#335 - George Granberry / @JudgeJerj

06/26/2022 at 04:20PM

13
#336 - Brandon / @Brandon10678836

08/30/2022 at 04:13PM

13
#337 - James Marshall / @astrophd

10/12/2022 at 06:29PM

13
#338 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 10:18PM

13
#339 - James / @Dronak

10/23/2022 at 04:00AM

13
#340 - Dank City / @ddankcity

12/08/2022 at 06:26PM

13
#341 - Vinay Sridhar / @kewllip

03/26/2023 at 10:53AM

13
#342 - Divvy C. / @divvy_c

08/13/2023 at 12:44PM

13
#343 - Chris Braissant / @braissac

10/18/2023 at 08:32PM

13
#344 - rayx / @ray-x

12/08/2023 at 10:14AM

13
#345 - armaninux / @armaninux

04/06/2024 at 01:00PM

13
#346 - Kevin Traver / @kevintraver

04/10/2024 at 04:37PM

14
#347 - Robert Blackwell / @blackfromchina

02/24/2021 at 02:01AM

14
#348 - Tobia Bocchi / @BocchiTobia

02/24/2021 at 03:30PM

14
#349 - arussel / @arussel7

02/24/2021 at 05:20PM

14
#350 - Daniel Andersson / @AnderssonDanzig

02/27/2021 at 10:56AM

14
#351 - Kml / @ptrfnct

02/27/2021 at 08:51PM

14
#352 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:51AM

14
#353 - Boris / @borisnimcevic

03/14/2021 at 10:37PM

14
#354 - Daniel Qu / @danielq9871

05/08/2021 at 03:55PM

14
#355 - joao neto / @joaonet49907796

05/14/2021 at 06:58PM

14
#356 - morfed7 / @morfed7

06/12/2021 at 03:24AM

14
#357 - Dmitry Maksyoma / @oledestin

06/19/2021 at 02:25PM

14
#358 - Saurav / @ray__saurav

06/20/2021 at 07:01PM

14
#359 - Patrick Martin / @PatrickDMartin

06/29/2021 at 09:26AM

14
#360 - Liu ko / @liukonst

07/05/2021 at 08:45PM