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

3799 active golfers, 14449 entries

Leaderboard (lowest score wins):
15
#1951 - gogogo / @zzingzzong

10/07/2016 at 07:32AM

15
#1952 - Christian Rondeau / @c_rondeau

10/14/2016 at 04:26PM

15
#1953 - Shmelev Jaroslav / @hummelchen0

10/28/2016 at 08:33AM

15
#1954 - KK (TheKK) / @kk_the_gamer

11/02/2016 at 04:20PM

15
#1955 - GiggleGeeks / @GiggleGeeks

11/03/2016 at 10:18AM

15
#1956 - Matti Sairanen / @MattiSairanen

11/15/2016 at 06:32PM

15
#1957 - Tyler Ewing / @tewing10

12/29/2016 at 02:19AM

15
#1958 - Saurav Mitra / @SauravMitra11

12/31/2016 at 07:37AM

15
#1959 - akan / @akan17802661

01/02/2017 at 09:01AM

15
#1960 - Nxgr / @Nxgr_l

01/05/2017 at 03:59PM

15
#1961 - Sushrut Shirole / @sushrutshirole

02/11/2017 at 09:36PM

15
#1962 - Notifications / @Notifications_m

02/22/2017 at 09:33PM

15
#1963 - David Lignell / @davidlignell

03/05/2017 at 05:56PM

15
#1964 - Mitchell / @Spitchell

03/16/2017 at 03:46PM

15
#1965 - Rao Zvorovski / @RaoZvorovski

04/02/2017 at 07:43PM

15
#1966 - Julien Philippon / @Apoutchika

04/12/2017 at 08:51PM

15
#1967 - Yann / @yannstad

04/25/2017 at 06:54PM

15
#1968 - jayem / @not_even_lyin

05/04/2017 at 06:04AM

15
#1969 - 丰璐琰 / @flydzt

05/12/2017 at 08:56AM

15
#1970 - Richard Ivan / @Richard_Ivan

05/13/2017 at 03:52PM

15
#1971 - Juan-Lucas Picard / @davidmh

05/15/2017 at 11:40PM

15
#1972 - sebastian pech / @specht08

06/08/2017 at 12:45PM

15
#1973 - Meriadec Pillet / @loomisBroom

06/18/2017 at 05:46PM

15
#1974 - Brian Hall / @_bruab_

06/19/2017 at 03:50PM

15
#1975 - Karol / @kruzelecki

06/22/2017 at 07:48AM

15
#1976 - Brendan G / @Brendan314

06/27/2017 at 06:49PM

15
#1977 - Kieron Browne / @KieronBrowne1

06/29/2017 at 09:15PM

15
#1978 - Cameron Kingsbury / @Camsbury

07/05/2017 at 02:48AM

15
#1979 - grigouille / @grigouille2

07/05/2017 at 08:15PM

15
#1980 - Ψαροκροκέτα / @psarokroketa

07/22/2017 at 08:41PM