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):
12
#301 - snowy / @snowyeveryday

10/28/2022 at 02:33AM

12
#302 - makita0x01 / @Makita81234049

02/14/2023 at 07:50AM

12
#303 - Garlic Bread / @GarlicB30592807

03/04/2023 at 10:04PM

12
#304 - くりち / 栗原佑弥 / @kurichi97

07/04/2023 at 06:09AM

12
#305 - Monkey Boy / @monkey29089

09/24/2023 at 05:45AM

12
#306 - Abdelrahman Madkour / @A3Madkour

11/23/2023 at 05:56PM

12
#307 - Meya / @meya-zhao

03/15/2024 at 02:49AM

12
#308 - gpfl0712 / @gpfl0712

04/13/2024 at 08:15PM

12
#309 - luke37842 / @luke37842

05/14/2024 at 03:44PM

12
#310 - Giacomo Sansone / @pcineverdies

07/05/2024 at 07:37PM

13
#311 - せいほう / @FICSQF

02/22/2021 at 09:56PM

13
#312 - chocolate / @chocola81394123

02/23/2021 at 05:56AM

13
#313 - Madelyn Freed / @demonaday

02/23/2021 at 03:53PM

13
#314 - Xzavie / @Xzavie3

02/25/2021 at 03:57AM

13
#315 - samuel wang / @phyguan

02/26/2021 at 03:42AM

13
#316 - Tarek Fadali / @FadaliTarek

03/03/2021 at 09:31PM

13
#317 - Julius Marozas / @JuliusMarozas

03/05/2021 at 10:44PM

13
#318 - Mattias Fransson / @azzidoos

03/09/2021 at 08:53AM

13
#319 - Danny Sanchez / @Dane1410s

03/10/2021 at 02:46AM

13
#320 - Kaustubh Murumkar / @k_austub_h

03/10/2021 at 02:21PM

13
#321 - Robert Verst / @r_verst

03/15/2021 at 12:56PM

13
#322 - Azeddine Hamdaoui / @Azeddine_Hmd

03/16/2021 at 03:39AM

13
#323 - asdgfwaefewf123123 / @asdgfwaefewf121

03/17/2021 at 12:26PM

13
#324 - Thanh-Nhan Nguyen / @ThanhNh17788701

05/12/2021 at 02:06AM

13
#325 - Paweł Styczewski / @kryspuss

05/19/2021 at 11:03AM

13
#326 - dreamers00 / @dreamers003

05/23/2021 at 06:31PM

13
#327 - Lee Kian Tat Ken / @thekingtat

06/07/2021 at 08:04AM

13
#328 - Jacob Wood / @jacoblandonwood

06/15/2021 at 03:07AM

13
#329 - ボードゲーム! / @boardgame_JP

07/17/2021 at 01:54AM

13
#330 - Tom / @Toromtomtom

08/11/2021 at 12:54PM