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

481 active golfers, 1774 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

11
#221 - Willy / @Willy92273889

02/26/2021 at 04:54PM

11
#222 - b0wman / @b0wman_x00

02/27/2021 at 01:51PM

11
#223 - Dmitrii Bugrov / @dmitrii_bugrov

02/28/2021 at 07:05PM

11
#224 - qsdfqsdf / @qsdfqsd83220776

03/04/2021 at 07:52PM

11
#225 - Emil Braserud / @Erdustiggen

03/06/2021 at 02:23PM

11
#226 - kok / @kok89428331

03/09/2021 at 01:16PM

11
#227 - Janek Szynal / @rrszynka

03/09/2021 at 07:14PM

11
#228 - JohnDoe02 / @Doe02John

03/15/2021 at 04:05PM

11
#229 - jotalera de arrascaeta / @jotachico

03/15/2021 at 05:48PM

11
#230 - 김범준 / @kmbmjn

05/10/2021 at 11:40AM

11
#231 - :wq / @write_quit_22

05/18/2021 at 04:36PM

11
#232 - Andrew Ouzts / @andrew_ouzts

05/20/2021 at 05:21AM

11
#233 - iBhagwan / @iiBhagwan

07/07/2021 at 04:02AM

11
#234 - Lean Lunch / @LunchLean

07/29/2021 at 06:03PM

11
#235 - Matrices Matlab #1 / @matrices_matlab

07/30/2021 at 11:33AM

11
#236 - Shreeram / @Shrimpraam

08/24/2021 at 03:09AM

11
#237 - yancy / @yancy_dong

09/22/2021 at 02:27AM

11
#238 - 100fürn / @hilvmir

09/25/2021 at 07:35PM

11
#239 - yxke / @_yxke

12/17/2021 at 03:01AM

11
#240 - Ramtin Martin / @martin_ramtin

03/22/2022 at 01:36AM