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

416 active golfers, 1534 entries

Leaderboard (lowest score wins):
13
#271 - Yochem van Rosmalen / @yoch3m

03/11/2022 at 06:14PM

13
#272 - Wojtic / @Wojtic1

03/31/2022 at 02:04PM

13
#273 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 07:00AM

13
#274 - George Granberry / @JudgeJerj

06/26/2022 at 04:20PM

13
#275 - Brandon / @Brandon10678836

08/30/2022 at 04:13PM

13
#276 - James Marshall / @astrophd

10/12/2022 at 06:29PM

13
#277 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 10:18PM

13
#278 - James / @Dronak

10/23/2022 at 04:00AM

13
#279 - Dank City / @ddankcity

12/08/2022 at 06:26PM

13
#280 - Vinay Sridhar / @kewllip

03/26/2023 at 10:53AM

14
#281 - Robert Blackwell / @blackfromchina

02/24/2021 at 02:01AM

14
#282 - Tobia Bocchi / @BocchiTobia

02/24/2021 at 03:30PM

14
#283 - arussel / @arussel7

02/24/2021 at 05:20PM

14
#284 - Daniel Andersson / @AnderssonDanzig

02/27/2021 at 10:56AM

14
#285 - Kml / @ptrfnct

02/27/2021 at 08:51PM

14
#286 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:51AM

14
#287 - Boris / @borisnimcevic

03/14/2021 at 10:37PM

14
#288 - Daniel Qu / @danielq9871

05/08/2021 at 03:55PM

14
#289 - joao neto / @joaonet49907796

05/14/2021 at 06:58PM

14
#290 - morfed7 / @morfed7

06/12/2021 at 03:24AM

14
#291 - Dmitry Maksyoma / @oledestin

06/19/2021 at 02:25PM

14
#292 - Saurav / @ray__saurav

06/20/2021 at 07:01PM

14
#293 - Patrick Martin / @PatrickDMartin

06/29/2021 at 09:26AM

14
#294 - Liu ko / @liukonst

07/05/2021 at 08:45PM

14
#295 - ゆに / @lededex

07/13/2021 at 05:59PM

14
#296 - Sergio / @SergioVl12

07/24/2021 at 03:40PM

14
#297 - Rick de chez Gnous / @GnousRick

07/25/2021 at 01:24PM

14
#298 - TonioLorde21 / @TLorde21

08/27/2021 at 08:48AM

14
#299 - ya-suke / @ninja__01

02/11/2022 at 10:46AM

14
#300 - Jay Solana / @JaySolana3

02/07/2023 at 06:06AM