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):
10
#961 - Delon / @delonleonard

12/25/2019 at 02:44AM

10
#962 - rirze / @SourabhWasTaken

12/25/2019 at 03:50PM

10
#963 - David Barker / @dashleybarker

12/28/2019 at 08:12PM

10
#964 - Maksim / @its_terra

12/30/2019 at 09:17PM

10
#965 - Tefe / @tefetic

01/02/2020 at 10:12PM

10
#966 - caffeineism / @caffeineism

01/06/2020 at 04:28AM

10
#967 - nicosierra / @nicosierra84

01/09/2020 at 09:32PM

10
#968 - John Kevin Estrella / @kevsestrella

01/12/2020 at 04:28AM

10
#969 - lev / @nouvelliu

01/13/2020 at 08:12AM

10
#970 - Tyler Culdler / @culdler

01/19/2020 at 06:16AM

10
#971 - Bashar Jaan Khan / @basharjaankhan

01/19/2020 at 09:05AM

10
#972 - Kyle X. Clark / @KyXr_Clark

01/22/2020 at 06:33AM

10
#973 - li / @li94938987

01/24/2020 at 11:06AM

10
#974 - Daniel Simionato / @weseven

01/27/2020 at 10:54AM

10
#975 - Oleg / @colega

01/28/2020 at 09:31PM

10
#976 - おねさわ / @yama846

01/31/2020 at 04:53PM

10
#977 - Jean-Francois Parent / @hacker_pyrat

02/06/2020 at 06:37PM

10
#978 - Asim / @Asim99980694

02/09/2020 at 04:55PM

10
#979 - jrddp / @jrddp0

02/13/2020 at 05:33PM

10
#980 - Gytis Vinclovas / @GytisVinclovas

02/14/2020 at 03:33PM

10
#981 - Anthony BERNARD / @TweetTontony

02/15/2020 at 09:42PM

10
#982 - howanto / @ho_wan_

02/18/2020 at 02:14PM

10
#983 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:01PM

10
#984 - yhetsugiHMC / @yhetsugi

02/21/2020 at 01:17AM

10
#985 - vimgolfplayer92 / @vimgolfplayer92

02/29/2020 at 12:28PM

10
#986 - Omar Sulehria / @osulehria

02/29/2020 at 06:17PM

10
#987 - countime / @countime1

03/05/2020 at 02:11AM

10
#988 - garry quested / @GQuested

03/05/2020 at 09:07AM

10
#989 - Paul Parker / @PaulDesmoParker

03/08/2020 at 11:28AM

10
#990 - Wouter Horlings / @Achilleshiel

03/12/2020 at 10:46AM