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

511 active golfers, 1900 entries

Leaderboard (lowest score wins):
10
#31 - Shivam Sharma / @getshivam

03/03/2021 at 12:33PM

10
#32 - Jonathan Eidsness / @jonathaneidsnes

03/03/2021 at 05:55PM

10
#33 - Bashar Jaan Khan / @basharjaankhan

03/04/2021 at 06:33AM

10
#34 - Sando Itchi / @sando_itchi

03/05/2021 at 12:54AM

10
#35 - ✨ / @startresse

03/05/2021 at 07:33AM

10
#36 - mandophysics / @mandophysics

03/05/2021 at 08:25PM

10
#37 - Kha Nguyen / @__ngtrongkha

03/07/2021 at 10:09AM

10
#38 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

03/08/2021 at 06:19PM

10
#39 - Ray Dennis / @raysden

03/08/2021 at 09:04PM

10
#40 - der tanzbaer / @der_tanzbaer

03/08/2021 at 09:50PM

10
#41 - Dylan / @helloasdff

03/09/2021 at 08:07PM

10
#42 - mdprogtw / @mdprogtw

03/10/2021 at 12:34AM

10
#43 - kops-vimgolf / @KVimgolf

03/10/2021 at 10:27AM

10
#44 - maxtong / @maxtong1987

03/10/2021 at 10:57AM

10
#45 - xing yang / @yangxing844

03/10/2021 at 11:39AM

10
#46 - yaarrr / @v0lko

03/10/2021 at 12:14PM

10
#47 - pomélux / @pomelux

03/10/2021 at 04:49PM

10
#48 - Ala Hu / @alahu101

03/10/2021 at 08:04PM

10
#49 - jack-dean / @jackdea26835559

03/11/2021 at 03:15AM

10
#50 - つけ / @n_tukey_57

03/11/2021 at 07:50AM

10
#51 - LGG / @__LGG__

03/11/2021 at 08:06PM

10
#52 - A A A / @37fatos

03/11/2021 at 09:41PM

10
#53 - a b c / @abc41115243

03/12/2021 at 01:58AM

10
#54 - Paul Adlene / @AdlenePaul

03/12/2021 at 11:57AM

10
#55 - AAbraxas / @AAbraxas1

03/12/2021 at 07:56PM

10
#56 - shirano / @shirano06409819

03/13/2021 at 04:21AM

10
#57 - kp097hg56 / @somewaterplease

03/13/2021 at 06:26PM

10
#58 - Tuure / @tuure_p

03/15/2021 at 01:38AM

10
#59 - ♪ / @Ymgch_Key

03/15/2021 at 04:02AM

10
#60 - kafang plays vimgolf / @KafangV

03/16/2021 at 08:18AM