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

479 active golfers, 1772 entries

Leaderboard (lowest score wins):
11
#241 - ff df / @ffdf93207177

04/18/2022 at 02:45AM

11
#242 - ._. / @Katharsic

04/24/2022 at 07:39AM

11
#243 - M Joc / @MJoc72389438

06/25/2022 at 06:27PM

11
#244 - b1gz / @_b1gz

03/06/2023 at 05:51PM

11
#245 - FirstModus / @Nolimimer

03/26/2023 at 10:06PM

11
#246 - John Huynh / @huynh_j93

04/29/2023 at 11:57PM

11
#247 - Spamz 254 / @Spamz254

08/31/2023 at 08:45AM

11
#248 - Ludovic Schwartz / @ludovicschwartz

11/17/2023 at 03:46PM

11
#249 - asirago / @asiragoo

12/13/2023 at 12:11PM

11
#250 - Antoine Biard / @antoan2

12/18/2023 at 01:55PM

11
#251 - BlockLune / @BlockLune

01/08/2024 at 09:20AM

11
#252 - ysw505 / @ysw505

01/15/2024 at 02:58PM

11
#253 - fu2y / @fu2y

01/23/2024 at 12:34PM

12
#254 - James Rayman / @jamsramen

02/25/2021 at 06:43AM

12
#255 - Jake Hedman / @JakeHedman

02/25/2021 at 01:36PM

12
#256 - Marc Assens / @marcassens

02/25/2021 at 05:43PM

12
#257 - a guy / @ayylmsklfjnalsd

02/25/2021 at 10:44PM

12
#258 - jfroffice / @jfroffice

02/26/2021 at 02:38PM

12
#259 - vimgolf321798 / @vimgolf321798

02/26/2021 at 08:24PM

12
#260 - Roland Venesz / @steerio

02/27/2021 at 08:18PM

12
#261 - Piers (Ali) Barber / @logicmonkey0

03/05/2021 at 11:51PM

12
#262 - wuzirui / @wuzirui5

03/10/2021 at 12:33PM

12
#263 - MexicanGolf / @GolfMexican

03/13/2021 at 10:13AM

12
#264 - mindgitrwx / @mindgitrwx

03/14/2021 at 04:19PM

12
#265 - Linus Bergman / @LinusBergman8

04/30/2021 at 07:42AM

12
#266 - Robear Selwans / @mo7sener

05/12/2021 at 02:40PM

12
#267 - Calarasanu Andrei / @_fanfani4_

05/18/2021 at 08:09PM

12
#268 - grsh / @girish_i_am

05/21/2021 at 03:00PM

12
#269 - noname / @1____NULL____0

07/11/2021 at 08:26PM

12
#270 - tpoeiras / @tpoeirass

08/03/2021 at 04:24PM