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

382 active golfers, 1398 entries

Leaderboard (lowest score wins):
11
#181 - kok / @kok89428331

03/09/2021 at 01:16PM

11
#182 - Janek Szynal / @rrszynka

03/09/2021 at 07:14PM

11
#183 - JohnDoe02 / @Doe02John

03/15/2021 at 04:05PM

11
#184 - jotalera de arrascaeta / @jotachico

03/15/2021 at 05:48PM

11
#185 - 김범준 / @kmbmjn

05/10/2021 at 11:40AM

11
#186 - :wq / @write_quit_22

05/18/2021 at 04:36PM

11
#187 - Andrew Ouzts / @andrew_ouzts

05/20/2021 at 05:21AM

11
#188 - iBhagwan / @iiBhagwan

07/07/2021 at 04:02AM

11
#189 - Lean Lunch / @LunchLean

07/29/2021 at 06:03PM

11
#190 - Matrices Matlab #1 / @matrices_matlab

07/30/2021 at 11:33AM

11
#191 - Shreeram / @Shrimpraam

08/24/2021 at 03:09AM

11
#192 - yancy / @yancy_dong

09/22/2021 at 02:27AM

11
#193 - 100fürn / @hilvmir

09/25/2021 at 07:35PM

11
#194 - yxke / @_yxke

12/17/2021 at 03:01AM

11
#195 - Ramtin Martin / @martin_ramtin

03/22/2022 at 01:36AM

11
#196 - James Duffy / @jduffy3

04/12/2022 at 02:02AM

11
#197 - ff df / @ffdf93207177

04/18/2022 at 02:45AM

11
#198 - ._. / @Katharsic

04/24/2022 at 07:39AM

11
#199 - M Joc / @MJoc72389438

06/25/2022 at 06:27PM

12
#200 - James Rayman / @jamsramen

02/25/2021 at 06:43AM

12
#201 - Jake Hedman / @JakeHedman

02/25/2021 at 01:36PM

12
#202 - Marc Assens / @marcassens

02/25/2021 at 05:43PM

12
#203 - a guy / @ayylmsklfjnalsd

02/25/2021 at 10:44PM

12
#204 - jfroffice / @jfroffice

02/26/2021 at 02:38PM

12
#205 - vimgolf321798 / @vimgolf321798

02/26/2021 at 08:24PM

12
#206 - Roland Venesz / @steerio

02/27/2021 at 08:18PM

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

03/05/2021 at 11:51PM

12
#208 - wuzirui / @wuzirui5

03/10/2021 at 12:33PM

12
#209 - MexicanGolf / @GolfMexican

03/13/2021 at 10:13AM

12
#210 - mindgitrwx / @mindgitrwx

03/14/2021 at 04:19PM