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

3927 active golfers, 14996 entries

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

04/16/2015 at 03:53AM

15
#1952 - Pimzero / @pimzer0

04/18/2015 at 12:10AM

15
#1953 - horace / @hor1ace

04/23/2015 at 02:15PM

15
#1954 - Ryan Glassett / @rollsavager

04/23/2015 at 05:12PM

15
#1955 - Chase Vasic / @ChaseVasic

04/26/2015 at 07:17PM

15
#1956 - Marc-Antoine Sauvé / @masauve_ac

04/26/2015 at 11:13PM

15
#1957 - ところたん / @tokoro10g

04/30/2015 at 07:57AM

15
#1958 - たんたる / @tantal_mech

05/07/2015 at 12:15AM

15
#1959 - Chi Bong Ho / @chibongho

05/07/2015 at 01:30AM

15
#1960 - vimgolfuser / @vimgolfuser_

05/08/2015 at 06:31AM

15
#1961 - Chris / @crr0004

05/12/2015 at 07:01AM

15
#1962 - Yannick / @yannack

05/22/2015 at 10:34AM

15
#1963 - wlads / @wlads

05/22/2015 at 09:55PM

15
#1964 - Stefan Knudsen / @knud32

05/25/2015 at 04:41AM

15
#1965 - Bruce Woodward / @Bruce_Woodward

05/25/2015 at 10:00PM

15
#1966 - Florent F. / @floff01

06/09/2015 at 11:37AM

15
#1967 - hidnasio / @hidnasio

06/15/2015 at 01:11AM

15
#1968 - Seth Yoder / @McMire315

06/23/2015 at 04:56PM

15
#1969 - Mathew Abado / @MathewAbado

07/02/2015 at 01:01AM

15
#1970 - Dominique van de Vor / @dvdvorle

07/14/2015 at 08:39PM

15
#1971 - Christopher MCA / @christopherMCA

07/17/2015 at 03:35AM

15
#1972 - Agnans / @agnans92

07/31/2015 at 06:32AM

15
#1973 - omahn / @omahn

08/21/2015 at 04:41PM

15
#1974 - Aleksandr Block / @AleksandrBlock

09/01/2015 at 06:48AM

15
#1975 - Pete Sevander / @Sevanteri

09/19/2015 at 07:09AM

15
#1976 - jan muha / @h4ct1c

10/03/2015 at 06:58PM

15
#1977 - Oliver Christ / @0liverChrist

10/10/2015 at 09:42PM

15
#1978 - Dian Xiao / @dian_xiao

10/11/2015 at 04:49AM

15
#1979 - Alex J. Ahraus / @fanaugen

10/23/2015 at 03:38PM

15
#1980 - Marcin Cabaj / @marcincabaj

11/09/2015 at 11:57AM