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):
10
#151 - Ofer Yehuda / @OferYehuda

02/24/2022 at 03:59PM

10
#152 - Даня Ефимов / @Abberatus

03/13/2022 at 08:24PM

10
#153 - Cyber Security Daily News / @can_uygan

03/28/2022 at 10:00AM

10
#154 - Jason Kuan | jasonkuan.eth / @Jason9075Kuan

04/03/2022 at 02:13PM

10
#155 - NicolasWebDev / @NicolasWebDev

04/27/2022 at 12:18AM

10
#156 - Javier Contreras / @contranton

05/04/2022 at 06:47PM

10
#157 - Tim / @MarhjaKhazua

05/16/2022 at 06:52PM

10
#158 - Levi Wheeler / @LeviWhe68726437

05/19/2022 at 10:28PM

10
#159 - russellzhaomao / @russellzhaomao

05/22/2022 at 11:02AM

10
#160 - Fabio Murru / @MurruFabio

06/01/2022 at 11:32PM

10
#161 - Will Long / @WillLon30283972

06/17/2022 at 08:22PM

10
#162 - Golfer / @Golfer56598542

06/24/2022 at 11:43AM

10
#163 - Megan Niu / @MeganNiu

06/25/2022 at 03:38PM

10
#164 - Alex / @AlexanderHeatl2

07/06/2022 at 07:31PM

10
#165 - Ariel Frischer / @ArielFrischer

07/18/2022 at 06:48AM

10
#166 - Yannick / @Yannick88147038

07/19/2022 at 07:32PM

10
#167 - z00master / @z00master

08/03/2022 at 04:58AM

10
#168 - Rui Duraes / @rui_duraes

08/29/2022 at 09:39PM

10
#169 - Janzen / @__Coos

09/13/2022 at 08:40AM

10
#170 - Omar Alawadhi / @OmarAla59544225

09/16/2022 at 10:28PM

10
#171 - vimgolfer / @vimgolf321

09/18/2022 at 08:20AM

10
#172 - Kausic / @Kausic99

09/25/2022 at 06:48AM

10
#173 - Saurabh / @saurabhDuzumaki

09/26/2022 at 01:29AM

10
#174 - Parrth Pandey / @parrth1808

09/26/2022 at 04:01AM

10
#175 - Rohit Yadav / @yrohit250

09/26/2022 at 09:03PM

11
#176 - Willy / @Willy92273889

02/26/2021 at 04:54PM

11
#177 - b0wman / @b0wman_x00

02/27/2021 at 01:51PM

11
#178 - Dmitrii Bugrov / @dmitrii_bugrov

02/28/2021 at 07:05PM

11
#179 - qsdfqsdf / @qsdfqsd83220776

03/04/2021 at 07:52PM

11
#180 - Emil Braserud / @Erdustiggen

03/06/2021 at 02:23PM