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 307 remaining solutions by signing in and submitting your own entry
#308 Jake Worth / @jwworth - Score: 30 - 11/17/21 @ 01:11
4GVGdkO<Esc>pkddjjddpkkddkkpjj:wq<CR>

0 comments


Created by: @iviarcio

308 active golfers, 1113 entries

Leaderboard (lowest score wins):
23
#301 - Vgrbwat / @vgrbwat

06/03/2021 at 04:40AM

24
#302 - Jakob Hyldtoft / @hylle

03/14/2021 at 12:31AM

24
#303 - 陳奕豪 / @r0PdXfxBX3MFcw3

03/15/2021 at 08:31AM

25
#304 - Temp / @San5nom

02/25/2021 at 11:38AM

25
#305 - endre medhus / @97Medhus

03/03/2021 at 07:17PM

26
#306 - Ugg / @Ugg_dvmx

02/25/2021 at 12:53PM

27
#307 - C_SEUNGHO / @aa1916090018425

03/09/2021 at 03:26AM

30
#308 - Jake Worth / @jwworth

11/17/2021 at 01:11AM