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):
22
#481 - lei4519 / @lei4519

02/28/2021 at 01:23AM

22
#482 - Alejandro Garrido M / @mogaal

02/28/2021 at 05:27PM

22
#483 - EjectedPlanet / @EjectedPlanet

03/01/2021 at 06:28PM

22
#484 - Andrii Savchenko / @ptico

03/04/2021 at 01:46AM

22
#485 - justinknag / @justinknag

03/14/2021 at 02:07AM

22
#486 - Marian Priebe / @mariankpriebe

10/01/2021 at 09:26AM

22
#487 - dhrubajyoti ghosh / @dhruba02

12/23/2021 at 12:03PM

23
#488 - MΛЯK | FAWG / @omwbbl

03/10/2021 at 05:53PM

23
#489 - John Smith / @JohnSmi38307095

03/19/2021 at 02:01PM

23
#490 - Vgrbwat / @vgrbwat

06/03/2021 at 04:40AM

23
#491 - aravindthangavel / @aravindpt

04/11/2022 at 02:40AM

23
#492 - Serhiy Prikhodko / @mastersnetru

05/18/2022 at 10:35AM

23
#493 - Henrique Zerbini Junqueira de Assis / @ZerbiniAssis

10/23/2022 at 10:25PM

23
#494 - Abhijeet Bodas / @apbodas

11/01/2022 at 02:18PM

24
#495 - Jakob Hyldtoft / @hylle

03/14/2021 at 12:31AM

24
#496 - 陳奕豪 / @r0PdXfxBX3MFcw3

03/15/2021 at 08:31AM

24
#497 - math284i / @math284i

04/16/2024 at 10:37AM

25
#498 - Temp / @San5nom

02/25/2021 at 11:38AM

25
#499 - endre medhus / @97Medhus

03/03/2021 at 07:17PM

26
#500 - Ugg / @Ugg_dvmx

02/25/2021 at 12:53PM

26
#501 - Joshua Rose / @deop0214

07/24/2023 at 11:54AM

27
#502 - C_SEUNGHO / @aa1916090018425

03/09/2021 at 03:26AM

30
#503 - Jake Worth / @jwworth

11/17/2021 at 01:11AM

30
#504 - Sp00kyCat / @MaxwellORoark

02/19/2024 at 01:01PM

31
#505 - 김현진 / @qT7CwPpyOMJJskI

01/26/2022 at 12:57PM

37
#506 - Arif Ardiansyah / @ArsanOfficial

02/22/2022 at 04:12AM

38
#507 - Krishna / @krishnaa208

02/10/2024 at 07:51AM

48
#508 - 지형 유 / @O_hr_good7

04/05/2022 at 07:03PM

56
#509 - oleg / @oleg12573505

01/29/2022 at 04:54PM

67
#510 - P / @P94394010P

06/27/2022 at 10:36AM