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):
11
#241 - Janek Szynal / @rrszynka

03/09/2021 at 07:14PM

11
#242 - JohnDoe02 / @Doe02John

03/15/2021 at 04:05PM

11
#243 - jotalera de arrascaeta / @jotachico

03/15/2021 at 05:48PM

11
#244 - 김범준 / @kmbmjn

05/10/2021 at 11:40AM

11
#245 - :wq / @write_quit_22

05/18/2021 at 04:36PM

11
#246 - Andrew Ouzts / @andrew_ouzts

05/20/2021 at 05:21AM

11
#247 - iBhagwan / @iiBhagwan

07/07/2021 at 04:02AM

11
#248 - Lean Lunch / @LunchLean

07/29/2021 at 06:03PM

11
#249 - Matrices Matlab #1 / @matrices_matlab

07/30/2021 at 11:33AM

11
#250 - Shreeram / @Shrimpraam

08/24/2021 at 03:09AM

11
#251 - yancy / @yancy_dong

09/22/2021 at 02:27AM

11
#252 - 100fürn / @hilvmir

09/25/2021 at 07:35PM

11
#253 - yxke / @_yxke

12/17/2021 at 03:01AM

11
#254 - Ramtin Martin / @martin_ramtin

03/22/2022 at 01:36AM

11
#255 - James Duffy / @jduffy3

04/12/2022 at 02:02AM

11
#256 - ff df / @ffdf93207177

04/18/2022 at 02:45AM

11
#257 - ._. / @Katharsic

04/24/2022 at 07:39AM

11
#258 - M Joc / @MJoc72389438

06/25/2022 at 06:27PM

11
#259 - b1gz / @_b1gz

03/06/2023 at 05:51PM

11
#260 - FirstModus / @Nolimimer

03/26/2023 at 10:06PM

11
#261 - John Huynh / @huynh_j93

04/29/2023 at 11:57PM

11
#262 - Spamz 254 / @Spamz254

08/31/2023 at 08:45AM

11
#263 - Ludovic Schwartz / @ludovicschwartz

11/17/2023 at 03:46PM

11
#264 - asirago / @asiragoo

12/13/2023 at 12:11PM

11
#265 - Antoine Biard / @antoan2

12/18/2023 at 01:55PM

11
#266 - BlockLune / @BlockLune

01/08/2024 at 09:20AM

11
#267 - ysw505 / @ysw505

01/15/2024 at 02:58PM

11
#268 - fu2y / @fu2y

01/23/2024 at 12:34PM

11
#269 - かみひろ / @km_hr

03/09/2024 at 12:38PM

11
#270 - Dreb / @drebtchinsky

04/04/2024 at 11:28AM