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

396 active golfers, 1447 entries

Leaderboard (lowest score wins):
15
#301 - 张贤德 / @heather_real_

07/14/2022 at 02:29PM

16
#302 - Rob / @merob

03/12/2021 at 12:46PM

16
#303 - anna / @moonbeeaam

03/15/2021 at 03:28PM

16
#304 - Harshit Hajela / @HarshitHajela

04/09/2021 at 12:51AM

16
#305 - simplelife2010 / @simplelife20101

05/13/2021 at 09:38AM

16
#306 - Jaime Holaday / @polyrhythm3

05/14/2021 at 08:00PM

16
#307 - comdicap / @comdicap

05/27/2021 at 09:55PM

16
#308 - A White Dwarf / @AWhiteDwarf1

07/01/2021 at 09:08PM

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

07/11/2021 at 10:33AM

16
#310 - Un Extraño / @link145m

07/29/2021 at 11:25PM

16
#311 - N2427B / @N2427B

08/03/2021 at 09:09PM

16
#312 - Craig Euler / @euler_craig

09/26/2021 at 03:04AM

16
#313 - Pi IPE / @PiIsEducational

01/16/2022 at 02:21PM

16
#314 - Whirs / @tinywhirs

03/05/2022 at 10:41PM

17
#315 - John Doe / @JohnDoe75830353

02/24/2021 at 03:50PM

17
#316 - Artur Dumchev / @Liverm0r

02/28/2021 at 01:33PM

17
#317 - terra / @terra_farm

03/03/2021 at 12:52AM

17
#318 - BenMedcalf / @BMedcalf_online

04/17/2021 at 03:03AM

17
#319 - Steven / @Hallzy_18

05/10/2021 at 09:06PM

17
#320 - Kevin Keefe / @KevinKeefe5

05/14/2021 at 01:10AM

17
#321 - Winnie Yeung / @vionwinnie

06/23/2021 at 06:06AM

17
#322 - Markus Muschol / @MarkusMuschol

07/13/2021 at 01:16PM

17
#323 - edward testing / @testingedward

11/03/2021 at 12:55PM

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

11/10/2021 at 09:33AM

17
#325 - Ashley Feniello / @AshleyFen

02/22/2022 at 01:23AM

17
#326 - 강태화 / @kangtaehwa1234

03/18/2022 at 08:34AM

17
#327 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 12:44AM

17
#328 - Jonathan Elliott / @jon__elliott

05/04/2022 at 10:11AM

17
#329 - potatol33t / @potatol33t

08/07/2022 at 12:15PM

17
#330 - 우정민 / @jeongmin2021

10/02/2022 at 08:08PM