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):
10
#121 - Henrique Malheiro / @rike09

10/13/2021 at 11:02AM

10
#122 - auruby / @HenGreneggs

11/02/2021 at 02:35AM

10
#123 - TimMcGuire / @mcguire

11/04/2021 at 05:05AM

10
#124 - David Cherednik / @david_cherednik

11/04/2021 at 07:35PM

10
#125 - Max / @Max17868626

11/07/2021 at 11:55AM

10
#126 - Jean George / @JeanGeo20504212

11/07/2021 at 09:24PM

10
#127 - Michael / @triorph

11/10/2021 at 06:58AM

10
#128 - thari.eth / @thari_eth

11/11/2021 at 04:03PM

10
#129 - Swaraj Dash / @swarajdash_

11/14/2021 at 07:23PM

10
#130 - scpchicken / @scpchick

11/14/2021 at 08:49PM

10
#131 - Brendan Maginnis / @brendan_m6s

11/17/2021 at 10:44AM

10
#132 - Patrick Rainey / @PatrickJRainey

11/18/2021 at 12:44PM

10
#133 - peryy_92@hotmail.com / @PertheNewgolfer

11/26/2021 at 05:36PM

10
#134 - José Medrano / @happylilmexican

12/08/2021 at 07:20PM

10
#135 - deusthe / @deusthe91

12/16/2021 at 08:56PM

10
#136 - 深窓の令嬢@ドクター / @arbino1031

12/22/2021 at 02:15PM

10
#137 - Selvaganapathy P / @canabady

12/26/2021 at 03:15PM

10
#138 - 小山内まい / @osanamity

12/28/2021 at 10:13AM

10
#139 - $HA-|| / @s_k0731

01/01/2022 at 02:19AM

10
#140 - Humbaba / @humbabu

01/03/2022 at 08:48PM

10
#141 - POSIX / @po6ix

01/07/2022 at 02:46AM

10
#142 - Nougatine Naja / @NougatineNaja

01/12/2022 at 01:05PM

10
#143 - phazy / @phazy_x86

01/21/2022 at 07:34PM

10
#144 - Sammit / @somemeatjain

01/25/2022 at 06:58PM

10
#145 - Mats Faugli / @matsfaugli

01/27/2022 at 01:35PM

10
#146 - 초롱이 / @treebird82

01/29/2022 at 10:17AM

10
#147 - Carlos Gracia / @Elrauk

02/04/2022 at 02:07PM

10
#148 - blub blub / @xyDZdMNGzWLT

02/05/2022 at 03:58AM

10
#149 - Pawel Wenda / @pwlwnd

02/21/2022 at 08:57PM

10
#150 - JVIM / @JVIM101

02/23/2022 at 04:25PM