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

383 active golfers, 1399 entries

Leaderboard (lowest score wins):
13
#241 - Thanh-Nhan Nguyen / @ThanhNh17788701

05/12/2021 at 02:06AM

13
#242 - Paweł Styczewski / @kryspuss

05/19/2021 at 11:03AM

13
#243 - dreamers00 / @dreamers003

05/23/2021 at 06:31PM

13
#244 - Lee Kian Tat Ken / @thekingtat

06/07/2021 at 08:04AM

13
#245 - Jacob Wood / @jacoblandonwood

06/15/2021 at 03:07AM

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

07/17/2021 at 01:54AM

13
#247 - Tom / @Toromtomtom

08/11/2021 at 12:54PM

13
#248 - Armand Coretchi / @armandcoretchi_

08/13/2021 at 02:54PM

13
#249 - Rory Smith / @alan0buchanan

09/14/2021 at 09:44PM

13
#250 - Scott Berger / @scottberger

09/26/2021 at 05:00AM

13
#251 - Jon Powers / @JonKPowers

10/22/2021 at 12:35AM

13
#252 - Ken / @kenc_

01/20/2022 at 06:25AM

13
#253 - emilio / @emilioemmanueI

02/17/2022 at 09:32PM

13
#254 - Yochem van Rosmalen / @yoch3m

03/11/2022 at 06:14PM

13
#255 - Wojtic / @Wojtic1

03/31/2022 at 02:04PM

13
#256 - Henry Chimpden Earwicker / @HChEarwicker

06/14/2022 at 07:00AM

13
#257 - George Granberry / @JudgeJerj

06/26/2022 at 04:20PM

13
#258 - Brandon / @Brandon10678836

08/30/2022 at 04:13PM

14
#259 - Robert Blackwell / @blackfromchina

02/24/2021 at 02:01AM

14
#260 - Tobia Bocchi / @BocchiTobia

02/24/2021 at 03:30PM

14
#261 - arussel / @arussel7

02/24/2021 at 05:20PM

14
#262 - Daniel Andersson / @AnderssonDanzig

02/27/2021 at 10:56AM

14
#263 - Kml / @ptrfnct

02/27/2021 at 08:51PM

14
#264 - Chinmay Chhajed / @chhajedji

03/01/2021 at 08:51AM

14
#265 - Boris / @borisnimcevic

03/14/2021 at 10:37PM

14
#266 - Daniel Qu / @danielq9871

05/08/2021 at 03:55PM

14
#267 - joao neto / @joaonet49907796

05/14/2021 at 06:58PM

14
#268 - morfed7 / @morfed7

06/12/2021 at 03:24AM

14
#269 - Dmitry Maksyoma / @oledestin

06/19/2021 at 02:25PM

14
#270 - Saurav / @ray__saurav

06/20/2021 at 07:01PM