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):
10
#211 - JustAnAverageGuy / @JustAnAverageGuy

01/13/2024 at 01:30PM

10
#212 - cykirk / @cykirk

01/16/2024 at 12:23AM

10
#213 - epsilonshnepsilon / @epsilonshnepsilon

01/16/2024 at 02:03PM

10
#214 - Caesar 🏴󠁧󠁢󠁷󠁬󠁳󠁿 / @NotRexButCaesar

01/16/2024 at 11:49PM

10
#215 - romache8 / @romache8

02/01/2024 at 08:44AM

10
#216 - jonas-grobe / @jonas-grobe

02/02/2024 at 08:13PM

10
#217 - shikitanrei / @shikitanrei

02/04/2024 at 10:17AM

10
#218 - Gundacker Timothy / @gyhtomit

02/14/2024 at 02:51PM

10
#219 - evgenii-kokorin / @evgenii-kokorin

02/16/2024 at 01:15PM

10
#220 - EtherFan / @ether_fan

02/25/2024 at 12:11PM

10
#221 - Berel94 / @Berel94

03/07/2024 at 06:38PM

10
#222 - Jinli Xiao / @jinlixiao

03/11/2024 at 10:06PM

10
#223 - Seungho Lee / @llistnr

03/25/2024 at 04:16AM

10
#224 - Jiacong Fang / @zldrobit

04/03/2024 at 03:44PM

10
#225 - Peppa Pig / @PeppaPigSg

04/06/2024 at 02:53AM

10
#226 - constap / @constap

04/18/2024 at 10:43PM

10
#227 - Lily / @totallyuniquelily

04/25/2024 at 10:20AM

10
#228 - xiaoao1024 / @xiaoao1024

05/09/2024 at 10:52AM

10
#229 - Paul McDowell / @etothepi16

05/23/2024 at 06:26PM

10
#230 - Aly Thobani / @alythobani

05/29/2024 at 11:41AM

10
#231 - thien_engi / @buithanhthien

06/11/2024 at 04:46AM

10
#232 - sosa-daniel / @sosa-daniel

10/30/2024 at 02:20AM

10
#233 - k1mosabe / @k1mosabe

12/03/2024 at 02:11AM

10
#234 - Abdelrahman Madkour / @a3madkour

04/15/2025 at 04:01PM

11
#235 - Willy / @Willy92273889

02/26/2021 at 04:54PM

11
#236 - b0wman / @b0wman_x00

02/27/2021 at 01:51PM

11
#237 - Dmitrii Bugrov / @dmitrii_bugrov

02/28/2021 at 07:05PM

11
#238 - qsdfqsdf / @qsdfqsd83220776

03/04/2021 at 07:52PM

11
#239 - Emil Braserud / @Erdustiggen

03/06/2021 at 02:23PM

11
#240 - kok / @kok89428331

03/09/2021 at 01:16PM