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):
14
#361 - ゆに / @lededex

07/13/2021 at 05:59PM

14
#362 - Sergio / @SergioVl12

07/24/2021 at 03:40PM

14
#363 - Rick de chez Gnous / @GnousRick

07/25/2021 at 01:24PM

14
#364 - TonioLorde21 / @TLorde21

08/27/2021 at 08:48AM

14
#365 - ya-suke / @ysxninja

02/11/2022 at 10:46AM

14
#366 - Jay Solana / @JaySolana3

02/07/2023 at 06:06AM

14
#367 - مرجان / @IEnfantTerribIe

08/03/2023 at 02:39PM

14
#368 - Panda-Ghost / @Panda-Ghost

02/23/2024 at 08:08AM

14
#369 - SnakitoGamer4160 / @SnakitoGamer4160

04/07/2024 at 04:56PM

15
#370 - Renato Francia / @RenatoFranciaC

03/04/2021 at 03:44AM

15
#371 - coasterjunkie / @KidVizious

03/08/2021 at 12:29AM

15
#372 - No Name / @NoName74897215

03/13/2021 at 12:36PM

15
#373 - Ivo Blöchliger / @aigledesalpes

03/22/2021 at 08:50PM

15
#374 - Vishal Lal / @VishalL38801943

05/14/2021 at 08:43PM

15
#375 - Felice Candilio / @felicemcc

05/20/2021 at 08:02PM

15
#376 - lafwaN / @lafwxN

05/24/2021 at 04:48AM

15
#377 - Scott Atkins / @scottrick49

05/27/2021 at 04:34PM

15
#378 - 鍵岡 / @good_chiaka

07/10/2021 at 11:10AM

15
#379 - Ali Aslan / @AliAsla95742367

07/13/2021 at 12:55PM

15
#380 - I_Don't_Want_This_Account / @IDontWa59298038

07/15/2021 at 12:48AM

15
#381 - jan kovacovsky / @JanKovacovsky

11/21/2021 at 07:17PM

15
#382 - Ryan Murphy / @RyanMur03026891

03/15/2022 at 12:41PM

15
#383 - 张贤德 / @heather_real_

07/14/2022 at 02:29PM

15
#384 - @AndrewRadev@hachyderm.io / @andrewradev

03/06/2023 at 06:24PM

15
#385 - Olivier Bégassat / @zk_evm

05/27/2023 at 02:46PM

15
#386 - Святозар Петренко / @SvatozarPetren1

10/04/2023 at 02:19PM

15
#387 - mferrandon / @mferrandon

12/14/2023 at 10:33AM

16
#388 - Rob / @merob

03/12/2021 at 12:46PM

16
#389 - anna / @moonbeeaam

03/15/2021 at 03:28PM

16
#390 - Harshit Hajela / @HarshitHajela

04/09/2021 at 12:51AM