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

3809 active golfers, 14487 entries

Leaderboard (lowest score wins):
15
#1921 - Jakob Schöttl / @jschoettl

12/31/2015 at 07:57AM

15
#1922 - Andrea Rossi / @lucidstack

01/03/2016 at 02:46PM

15
#1923 - Jérôme Salignon / @JeromeSalignon

01/10/2016 at 01:28PM

15
#1924 - aashiq / @aashiq

01/12/2016 at 08:59AM

15
#1925 - John Traji / @JTraji

02/02/2016 at 09:06PM

15
#1926 - Cristian Lupașcu / @clupasq

02/03/2016 at 09:36AM

15
#1927 - よねおか / @karaagegohan_

02/10/2016 at 01:52PM

15
#1928 - Janine Cheng / @janineist

02/13/2016 at 04:42AM

15
#1929 - udreki / @udreki

02/20/2016 at 07:42AM

15
#1930 - Stefan Sonski / @stefansonski

02/28/2016 at 05:18PM

15
#1931 - Michel Ganguin / @tinycrazyfish

03/02/2016 at 09:32AM

15
#1932 - Tomasz Walotek / @uolot

03/04/2016 at 10:56AM

15
#1933 - aestetix / @aestetix

03/06/2016 at 11:15PM

15
#1934 - Joshua Clark / @propjohn

03/10/2016 at 03:33AM

15
#1935 - Jason Knight / @binarybana

03/11/2016 at 04:20PM

15
#1936 - Nathan Brown / @nkabrownie

03/15/2016 at 01:06PM

15
#1937 - Andy Locascio / @lowkaseo

03/20/2016 at 02:35AM

15
#1938 - Jason Choi / @joyous_jason

03/22/2016 at 10:48AM

15
#1939 - lilach adir / @leelaRed

03/31/2016 at 08:07AM

15
#1940 - Simon / @0xa5a5

04/02/2016 at 08:43AM

15
#1941 - neptunepink / @neptunepunk

04/06/2016 at 08:05PM

15
#1942 - Christian Franke / @franke_chriss

04/22/2016 at 06:20PM

15
#1943 - Nicholas Marasco / @Zero_Toast

04/29/2016 at 12:33AM

15
#1944 - Rob Ert / @robrunner888

05/09/2016 at 11:13AM

15
#1945 - niels aamloos / @AamloosNiels

05/28/2016 at 12:56PM

15
#1946 - some call me mattp / @mattpep

05/30/2016 at 02:49PM

15
#1947 - Zed Byrne / @ZeByrne

06/13/2016 at 11:25AM

15
#1948 - tobyh / @tobyh

06/17/2016 at 04:58AM

15
#1949 - Karen Edwards / @kevm324

06/29/2016 at 10:13PM

15
#1950 - Leix b / @leix_b

07/08/2016 at 04:05PM