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
#181 - ky05uk3 / @kyo89347563

12/01/2022 at 01:43AM

10
#182 - でよ / @tada_kun8

01/26/2023 at 03:17AM

10
#183 - 马海洋 / @LG41bT7ZvqOdFl3

02/07/2023 at 09:48PM

10
#184 - VimGolf878 / @VimGolf878

02/08/2023 at 04:54PM

10
#185 - Hugo Tai / @HugoTai100

02/09/2023 at 08:54AM

10
#186 - knopperrs / @Squwilliam_

03/11/2023 at 07:14AM

10
#187 - Ted / @TodorDukov

03/13/2023 at 09:12PM

10
#188 - daltonridenhour / @daltonridenhour

04/03/2023 at 03:27AM

10
#189 - Ian Horton / @IAMIANHORTON

04/03/2023 at 07:32AM

10
#190 - Neil - Bsky: neil.pro / @euneil

07/14/2023 at 02:16PM

10
#191 - naka / @nak38223985244

07/19/2023 at 01:26PM

10
#192 - theorem / @theorem

08/05/2023 at 02:21AM

10
#193 - A. L. / @lnchk

08/06/2023 at 05:52PM

10
#194 - r4d1um / @r4d1um

08/10/2023 at 09:34PM

10
#195 - Julian Pottle / @jules_np

08/19/2023 at 08:34PM

10
#196 - moh ayaya / @AyayaMoh

08/24/2023 at 08:11PM

10
#197 - 李建宏 / @xx19971016

08/31/2023 at 07:34AM

10
#198 - ryne LEE / @mearyne

09/03/2023 at 02:29AM

10
#199 - ilyas / @Ahaaah2071

09/22/2023 at 05:54PM

10
#200 - Geoff Liu / @geoff_liu

09/24/2023 at 03:04AM

10
#201 - Frank Malone / @FrankMa00268686

10/01/2023 at 06:08AM

10
#202 - Luoyb / @Luoyb

10/24/2023 at 01:36AM

10
#203 - _ / @k_n_rvs

10/25/2023 at 01:52PM

10
#204 - alexscott / @4l3xsc0tt

11/06/2023 at 11:23PM

10
#205 - Anyatsu / @Anyatsu

11/11/2023 at 02:42PM

10
#206 - lethalNeutrino / @lethalNeutrino

11/28/2023 at 01:03PM

10
#207 - tien / @tien40766111

12/03/2023 at 09:51AM

10
#208 - Remus Dalrymple / @bornintheflames

12/16/2023 at 08:39PM

10
#209 - Cindy Zhang / @zcin

01/06/2024 at 12:18AM

10
#210 - Yordan Boikov / @yboikov

01/07/2024 at 06:22PM