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

457 active golfers, 1679 entries

Leaderboard (lowest score wins):
13
#271 - せいほう / @FICSQF

02/22/2021 at 09:56PM

13
#272 - chocolate / @chocola81394123

02/23/2021 at 05:56AM

13
#273 - Madelyn Freed / @demonaday

02/23/2021 at 03:53PM

13
#274 - Xzavie / @Xzavie3

02/25/2021 at 03:57AM

13
#275 - samuel wang / @phyguan

02/26/2021 at 03:42AM

13
#276 - Tarek Fadali / @FadaliTarek

03/03/2021 at 09:31PM

13
#277 - Julius Marozas / @JuliusMarozas

03/05/2021 at 10:44PM

13
#278 - Mattias Fransson / @azzidoos

03/09/2021 at 08:53AM

13
#279 - Danny Sanchez / @Dane1410s

03/10/2021 at 02:46AM

13
#280 - Kaustubh Murumkar / @k_austub_h

03/10/2021 at 02:21PM

13
#281 - Robert Verst / @r_verst

03/15/2021 at 12:56PM

13
#282 - Azeddine Hamdaoui / @Azeddine_Hmd

03/16/2021 at 03:39AM

13
#283 - asdgfwaefewf123123 / @asdgfwaefewf121

03/17/2021 at 12:26PM

13
#284 - Thanh-Nhan Nguyen / @ThanhNh17788701

05/12/2021 at 02:06AM

13
#285 - Paweł Styczewski / @kryspuss

05/19/2021 at 11:03AM

13
#286 - dreamers00 / @dreamers003

05/23/2021 at 06:31PM

13
#287 - Lee Kian Tat Ken / @thekingtat

06/07/2021 at 08:04AM

13
#288 - Jacob Wood / @jacoblandonwood

06/15/2021 at 03:07AM

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

07/17/2021 at 01:54AM

13
#290 - Tom / @Toromtomtom

08/11/2021 at 12:54PM

13
#291 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 02:54PM

13
#292 - Rory Smith / @alan0buchanan

09/14/2021 at 09:44PM

13
#293 - Scott Berger / @scottberger

09/26/2021 at 05:00AM

13
#294 - Jon Powers / @JonKPowers

10/22/2021 at 12:35AM

13
#295 - Ken / @kenc_

01/20/2022 at 06:25AM

13
#296 - emilio / @emilioemmanueI

02/17/2022 at 09:32PM

13
#297 - Yochem van Rosmalen / @yoch3m

03/11/2022 at 06:14PM

13
#298 - Wojtic / @Wojtic1

03/31/2022 at 02:04PM

13
#299 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 07:00AM

13
#300 - George Granberry / @JudgeJerj

06/26/2022 at 04:20PM