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):
15
#391 - Olivier Bégassat / @zk_evm

05/27/2023 at 02:46PM

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

10/04/2023 at 02:19PM

15
#393 - mferrandon / @mferrandon

12/14/2023 at 10:33AM

16
#394 - Rob / @merob

03/12/2021 at 12:46PM

16
#395 - anna / @moonbeeaam

03/15/2021 at 03:28PM

16
#396 - Harshit Hajela / @HarshitHajela

04/09/2021 at 12:51AM

16
#397 - simplelife2010 / @simplelife20101

05/13/2021 at 09:38AM

16
#398 - Jaime Holaday / @polyrhythm3

05/14/2021 at 08:00PM

16
#399 - comdicap / @comdicap

05/27/2021 at 09:55PM

16
#400 - A White Dwarf / @AWhiteDwarf1

07/01/2021 at 09:08PM

16
#401 - Ron-Shan,Chang / @highlupin

07/11/2021 at 10:33AM

16
#402 - Un Extraño / @link145m

07/29/2021 at 11:25PM

16
#403 - N2427B / @N2427B

08/03/2021 at 09:09PM

16
#404 - Craig Euler / @euler_craig

09/26/2021 at 03:04AM

16
#405 - Pi IPE / @PiIsEducational

01/16/2022 at 02:21PM

16
#406 - Whirs / @tinywhirs

03/05/2022 at 10:41PM

16
#407 - @grhkm@infosec.exchange / @grhkm21

12/20/2022 at 10:51AM

16
#408 - D G G / @DGJourneyman

02/21/2023 at 05:48AM

17
#409 - John Doe / @JohnDoe75830353

02/24/2021 at 03:50PM

17
#410 - Artur Dumchev / @Liverm0r

02/28/2021 at 01:33PM

17
#411 - terra / @terra_farm

03/03/2021 at 12:52AM

17
#412 - BenMedcalf / @BMedcalf_online

04/17/2021 at 03:03AM

17
#413 - Steven / @Hallzy_18

05/10/2021 at 09:06PM

17
#414 - Kevin Keefe / @KevinKeefe5

05/14/2021 at 01:10AM

17
#415 - Winnie Yeung / @vionwinnie

06/23/2021 at 06:06AM

17
#416 - Markus Muschol / @MarkusMuschol

07/13/2021 at 01:16PM

17
#417 - edward testing / @testingedward

11/03/2021 at 12:55PM

17
#418 - Алексей Иванин / @AliakseiIvanin

11/10/2021 at 09:33AM

17
#419 - Ashley Feniello / @AshleyFen

02/22/2022 at 01:23AM

17
#420 - 강태화 / @kangtaehwa1234

03/18/2022 at 08:34AM