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

3962 active golfers, 15136 entries

Leaderboard (lowest score wins):
15
#2071 - Cameron Kingsbury / @Camsbury

07/05/2017 at 02:48AM

15
#2072 - grigouille / @grigouille2

07/05/2017 at 08:15PM

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

07/22/2017 at 08:41PM

15
#2074 - Aaron W / @aarwei

07/27/2017 at 07:43PM

15
#2075 - Netznarkose / @netznarkose

07/27/2017 at 08:37PM

15
#2076 - toddkoym / @toddkoym

08/08/2017 at 12:08AM

15
#2077 - Ky Statham / @ijustwannacode

08/10/2017 at 09:18PM

15
#2078 - Emmanuel Geoffray / @egeoffray

08/20/2017 at 06:13PM

15
#2079 - Wouter van der Meel / @AltWouss

08/21/2017 at 12:36PM

15
#2080 - asdf jkl; / @asdfjkl58010662

08/25/2017 at 11:58AM

15
#2081 - fuck / @fuck37565544

08/25/2017 at 01:58PM

15
#2082 - lujianmei / @lujianmei

09/05/2017 at 01:01PM

15
#2083 - Graham Bates / @gigabates

09/16/2017 at 12:08PM

15
#2084 - Charlie OConor / @charlieoconor

09/20/2017 at 08:56PM

15
#2085 - Christian Bauer / @Christi55765900

09/27/2017 at 12:27PM

15
#2086 - Justin Beavers / @JustinBeavers6

09/29/2017 at 11:48PM

15
#2087 - Marc / @Fusselgesicht

10/14/2017 at 10:38PM

15
#2088 - Matt Simmons / @matthSims

10/17/2017 at 07:17PM

15
#2089 - Thai Pangsakulyanont / @dtinth

10/29/2017 at 06:04PM

15
#2090 - Omar M. Ali / @OmarMMAli

10/30/2017 at 09:31PM

15
#2091 - Oscar🐊 / @GraveRaven

11/29/2017 at 08:04PM

15
#2092 - eiladin / @eiladin

12/08/2017 at 01:43PM

15
#2093 - けんしろう / @weapom923

12/12/2017 at 03:46AM

15
#2094 - ΝΙΚΟΣ / @nikosef8ias

01/12/2018 at 01:37AM

15
#2095 - John C Shea / @MHSSachems

01/12/2018 at 12:38PM

15
#2096 - Diego Balseiro / @diegobalseiro

01/24/2018 at 07:29PM

15
#2097 - The letter a / @joemamassbm

02/08/2018 at 06:19PM

15
#2098 - Matthew Barry / @komputerwiz

03/10/2018 at 09:33PM

15
#2099 - wil / @wilstenholme

03/20/2018 at 06:13AM

15
#2100 - Plósz Péter / @ploszpe

03/23/2018 at 09:13PM