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

505 active golfers, 1870 entries

Leaderboard (lowest score wins):
11
#241 - 김범준 / @kmbmjn

05/10/2021 at 11:40AM

11
#242 - :wq / @write_quit_22

05/18/2021 at 04:36PM

11
#243 - Andrew Ouzts / @andrew_ouzts

05/20/2021 at 05:21AM

11
#244 - iBhagwan / @iiBhagwan

07/07/2021 at 04:02AM

11
#245 - Lean Lunch / @LunchLean

07/29/2021 at 06:03PM

11
#246 - Matrices Matlab #1 / @matrices_matlab

07/30/2021 at 11:33AM

11
#247 - Shreeram / @Shrimpraam

08/24/2021 at 03:09AM

11
#248 - yancy / @yancy_dong

09/22/2021 at 02:27AM

11
#249 - 100fürn / @hilvmir

09/25/2021 at 07:35PM

11
#250 - yxke / @_yxke

12/17/2021 at 03:01AM

11
#251 - Ramtin Martin / @martin_ramtin

03/22/2022 at 01:36AM

11
#252 - James Duffy / @jduffy3

04/12/2022 at 02:02AM

11
#253 - ff df / @ffdf93207177

04/18/2022 at 02:45AM

11
#254 - ._. / @Katharsic

04/24/2022 at 07:39AM

11
#255 - M Joc / @MJoc72389438

06/25/2022 at 06:27PM

11
#256 - b1gz / @_b1gz

03/06/2023 at 05:51PM

11
#257 - FirstModus / @Nolimimer

03/26/2023 at 10:06PM

11
#258 - John Huynh / @huynh_j93

04/29/2023 at 11:57PM

11
#259 - Spamz 254 / @Spamz254

08/31/2023 at 08:45AM

11
#260 - Ludovic Schwartz / @ludovicschwartz

11/17/2023 at 03:46PM

11
#261 - asirago / @asiragoo

12/13/2023 at 12:11PM

11
#262 - Antoine Biard / @antoan2

12/18/2023 at 01:55PM

11
#263 - BlockLune / @BlockLune

01/08/2024 at 09:20AM

11
#264 - ysw505 / @ysw505

01/15/2024 at 02:58PM

11
#265 - fu2y / @fu2y

01/23/2024 at 12:34PM

11
#266 - かみひろ / @km_hr

03/09/2024 at 12:38PM

11
#267 - Dreb / @drebtchinsky

04/04/2024 at 11:28AM

12
#268 - James Rayman / @jamsramen

02/25/2021 at 06:43AM

12
#269 - Jake Hedman / @JakeHedman

02/25/2021 at 01:36PM

12
#270 - Marc Assens / @marcassens

02/25/2021 at 05:43PM