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):
14
#271 - Patrick Martin / @PatrickDMartin

06/29/2021 at 09:26AM

14
#272 - Liu ko / @liukonst

07/05/2021 at 08:45PM

14
#273 - ゆに / @lededex

07/13/2021 at 05:59PM

14
#274 - Sergio / @SergioVl12

07/24/2021 at 03:40PM

14
#275 - Rick de chez Gnous / @GnousRick

07/25/2021 at 01:24PM

14
#276 - TonioLorde21 / @TLorde21

08/27/2021 at 08:48AM

14
#277 - ya-suke / @ninja__01

02/11/2022 at 10:46AM

15
#278 - Renato Francia / @RenatoFranciaC

03/04/2021 at 03:44AM

15
#279 - coasterjunkie / @KidVizious

03/08/2021 at 12:29AM

15
#280 - No Name / @NoName74897215

03/13/2021 at 12:36PM

15
#281 - Ivo Blöchliger / @aigledesalpes

03/22/2021 at 08:50PM

15
#282 - Vishal Lal / @VishalL38801943

05/14/2021 at 08:43PM

15
#283 - Felice Candilio / @felicemcc

05/20/2021 at 08:02PM

15
#284 - lafwaN / @lafwxN

05/24/2021 at 04:48AM

15
#285 - Scott Atkins / @scottrick49

05/27/2021 at 04:34PM

15
#286 - 鍵岡 / @good_chiaka

07/10/2021 at 11:10AM

15
#287 - Ali Aslan / @AliAsla95742367

07/13/2021 at 12:55PM

15
#288 - I_Don't_Want_This_Account / @IDontWa59298038

07/15/2021 at 12:48AM

15
#289 - jan kovacovsky / @JanKovacovsky

11/21/2021 at 07:17PM

15
#290 - Ryan Murphy / @RyanMur03026891

03/15/2022 at 12:41PM

15
#291 - 张贤德 / @heather_real_

07/14/2022 at 02:29PM

16
#292 - Rob / @merob

03/12/2021 at 12:46PM

16
#293 - anna / @moonbeeaam

03/15/2021 at 03:28PM

16
#294 - Harshit Hajela / @HarshitHajela

04/09/2021 at 12:51AM

16
#295 - simplelife2010 / @simplelife20101

05/13/2021 at 09:38AM

16
#296 - Jaime Holaday / @polyrhythm3

05/14/2021 at 08:00PM

16
#297 - comdicap / @comdicap

05/27/2021 at 09:55PM

16
#298 - A White Dwarf / @AWhiteDwarf1

07/01/2021 at 09:08PM

16
#299 - Ron-Shan,Chang / @highlupin

07/11/2021 at 10:33AM

16
#300 - Un Extraño / @link145m

07/29/2021 at 11:25PM