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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
11
#1051 - Francesco Sacchi / @depsir

07/14/2018 at 02:19PM

11
#1052 - yqu212 / @yqu212

07/26/2018 at 01:40PM

11
#1053 - Rajesh Sharma / @deepredsky

07/29/2018 at 06:25PM

11
#1054 - Samuel Hsiang / @alwayswimmin

08/05/2018 at 01:06AM

11
#1055 - Bobby Showalter / @bobbyshowalter

08/07/2018 at 07:38PM

11
#1056 - Daichi / @daichi1014

08/16/2018 at 03:15AM

11
#1057 - Simon Ingelsson / @_DeVVaN_

08/16/2018 at 09:48AM

11
#1058 - A E / @aechirps

09/11/2018 at 08:19PM

11
#1059 - Sam Kim / @samkimhis

10/12/2018 at 06:29PM

11
#1060 - nobody that important / @nobodythatimpo2

10/13/2018 at 10:20PM

11
#1061 - Tri Cao / @TriCao19

10/27/2018 at 01:52AM

11
#1062 - fdsafewfw / @fdsafewfw

11/06/2018 at 12:11PM

11
#1063 - Nedal Kouissi / @n3d41

11/09/2018 at 01:01AM

11
#1064 - abgalphabet / @abgalphabet

01/13/2019 at 04:05AM

11
#1065 - Mangeart Yoric / @yoricm

01/17/2019 at 01:36PM

11
#1066 - bajidu / @bajidu

01/27/2019 at 12:03AM

11
#1067 - Marc Päpper / @mpaepper

01/28/2019 at 01:27PM

11
#1068 - Benoit Benoit / @Benoit_Tgt

01/29/2019 at 09:27PM

11
#1069 - 默罕默德 / @Rt6RjEAJ987Woes

01/31/2019 at 01:01PM

11
#1070 - Zach Russell / @ZacharyRRussell

02/07/2019 at 04:42AM

11
#1071 - LUTZ Jean / @Croustibot

02/27/2019 at 10:51AM

11
#1072 - Amado Antonini / @AmadoAntonini

03/08/2019 at 12:06PM

11
#1073 - 李超 / @lichaorodxx

03/10/2019 at 06:11AM

11
#1074 - Brad Daniels / @JBradDaniels

03/29/2019 at 02:22AM

11
#1075 - Antoine Gagelin / @AntoineGagelin

03/29/2019 at 04:26PM

11
#1076 - David A. Lyon / @dauglyon

03/29/2019 at 05:47PM

11
#1077 - hoge2341836 / @RootShunsuke

04/07/2019 at 03:32AM

11
#1078 - Fredrik Bjerkås / @fbjerkas

04/22/2019 at 12:58AM

11
#1079 - Luis Copetti / @lhcopetti

05/23/2019 at 01:24AM

11
#1080 - ささ / @nick11033

07/27/2019 at 12:16PM