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 5462e3f41198b80002512673

I forgot quotes

Oops.

Start file
foo = a
      ab
      abc
End file
foo = "a"
      "ab"
      "abc"

View Diff

1,3c1,3
< foo = a
<       ab
<       abc
---
> foo = "a"
>       "ab"
>       "abc"

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 4070 remaining solutions by signing in and submitting your own entry
#4071 x / @am_zzz_zzz - Score: 216 - 05/12/20 @ 07:30
llllllciw''<Esc>pjhlhciw''<Esc>pjhciw''<Esc>pkjuuuuuuciw'<C-R><C-O>"<C-H>"'<Esc>jjhciw'<C-R><C-O>"'<Esc>khhhlll.kh.jjhhvi'hluuuuuujjjlciw'<C-R><C-O>"'<Esc>ul.k.k.jjj:reg<CR>quuuuuukkv<Esc><Esc><C-V>jj:<Esc><Esc><Esc><Esc><Esc>jqk<C-V>jj:norm i'<C-V><Esc>A'<CR>khhhullllll<C-V>jjk<Esc>kciw"<Esc>pa"<Esc>uuujukkjlhkqaciw""<Esc>hpqj@aj@a:wq<CR>

0 comments


Created by: @udioica

4071 active golfers, 15593 entries

Leaderboard (lowest score wins):
10
#1081 - Nazrulla / @Nazrull37098421

10/10/2020 at 12:34PM

10
#1082 - Dmitry Antonyuk / @AntonyukDmitry

10/15/2020 at 03:44PM

10
#1083 - Herman Stavelin / @HsBruker

10/16/2020 at 11:15AM

10
#1084 - quemeraisc / @quemeraisc

11/04/2020 at 04:39PM

10
#1085 - Cornelius Roemer / @CorneliusRoemer

11/05/2020 at 10:04PM

10
#1086 - vimspam / @vimspam

11/09/2020 at 04:46AM

10
#1087 - Leo / @leosolidum

11/12/2020 at 08:48AM

10
#1088 - David Kutschke / @D4KU_

11/15/2020 at 10:58AM

10
#1089 - drumstix576 / @drumstix576

11/18/2020 at 08:54PM

10
#1090 - MrRubiksSC / @RubiksSc

11/25/2020 at 08:54PM

10
#1091 - Hugh / @haquaman

11/27/2020 at 01:40AM

10
#1092 - nd183 / @nd1832

12/03/2020 at 07:43AM

10
#1093 - roudens / @roudens2

12/04/2020 at 01:40AM

10
#1094 - Neverlandrunner / @neverlandrunner

12/05/2020 at 01:50PM

10
#1095 - Ryan Way / @RyanWay16

12/09/2020 at 05:57AM

10
#1096 - Ian Burgan / @IanBurgan

12/10/2020 at 09:13PM

10
#1097 - Jon Powers / @JonKPowers

12/13/2020 at 01:35PM

10
#1098 - Jacques Donnelly / @Donnll

12/14/2020 at 04:52PM

10
#1099 - 영훈 / @odjfnrtm

12/18/2020 at 02:20AM

10
#1100 - Ray Dennis / @raysden

12/23/2020 at 08:22PM

10
#1101 - justinhj / @justinhj

12/25/2020 at 03:51AM

10
#1102 - mjurenka / @mjurenka1

12/25/2020 at 10:19AM

10
#1103 - nigaslivesmatter / @nigaslivesmatt1

12/27/2020 at 04:41PM

10
#1104 - thegoncharov / @thegoncharov

12/29/2020 at 01:40PM

10
#1105 - Trong Kha Nguyen / @__ngtrongkha

12/30/2020 at 08:00AM

10
#1106 - Nicolas Pagny / @NicolasPagny

01/05/2021 at 03:26PM

10
#1107 - A A A / @37fatos

01/07/2021 at 01:45AM

10
#1108 - soppeldynga / @soppeldynga

01/10/2021 at 07:44PM

10
#1109 - Austin Scott / @theMetgame

01/10/2021 at 11:11PM

10
#1110 - Marion Oldman / @ThatBigCock

01/16/2021 at 09:58PM