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 3580 remaining solutions by signing in and submitting your own entry
#3581 Zac sliker / @Zacsliker - Score: 88 - 01/29/20 @ 16:05
p2wiii<BS><BS><Left><Left><Esc><Left><Left><Right><Right>i<Right><Right><Esc>a<Esc>A<Esc>"i"i<BS><BS><Right>a"<Right>"<Down><Left><Left>"<Right><Right>'<BS>"<Down><Left><Left><Left>"<Right><Right><Right>"<Esc><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><CR><CR><CR>:wq!<CR>

0 comments


Created by: @udioica

3581 active golfers, 13465 entries

Leaderboard (lowest score wins):
22
#3271 - Itamar Gal / @novicevimgolfer

08/16/2015 at 12:55AM

22
#3272 - Max Jacobson / @maxjacobson

10/29/2015 at 02:58AM

22
#3273 - Charleston / @cv9828

11/28/2015 at 04:47AM

22
#3274 - Kevin Gisi / @cheerskevin

02/22/2016 at 09:38AM

22
#3275 - Albert Le Batteux / @Aera_style

06/03/2016 at 03:44PM

22
#3276 - Thomas Versteeg / @versteeg_t

08/19/2016 at 07:30AM

22
#3277 - おたく / @cfinley

09/15/2016 at 07:03PM

22
#3278 - PaulCh / @__paulch

09/21/2016 at 11:48PM

22
#3279 - Mark Badros / @mbadros

12/08/2016 at 11:53PM

22
#3280 - Matt Ryan / @mrevd

12/23/2016 at 10:04PM

22
#3281 - Alex Moorman / @dabearsxander

01/06/2017 at 03:55AM

22
#3282 - Elliott Mantock / @elGatoMantocko

04/30/2017 at 07:05PM

22
#3283 - Kevin Lefevre / @klefevre_

06/18/2017 at 01:58PM

22
#3284 - Thomas Müller / @ThomasM04279

07/30/2017 at 08:49PM

22
#3285 - Mattias Lindström / @mattiaslndstrm

08/24/2017 at 04:27PM

22
#3286 - Adam Stephen / @2_71828

09/24/2017 at 08:47PM

22
#3287 - Sebastian Aburto / @saburto_m

10/01/2017 at 08:48PM

22
#3288 - School Solver / @schoolsolver

10/28/2017 at 01:27PM

22
#3289 - Michael Heyman / @michaelheyman

11/16/2017 at 02:23AM

22
#3290 - VimPL / @vim_pl

03/04/2018 at 12:04PM

22
#3291 - Jonathan Abramson / @zenpoy

03/12/2018 at 10:00PM

22
#3292 - woshisanhu / @woshisanhu

04/13/2018 at 05:08PM

22
#3293 - Sebastian Thümmel / @Seebass22

05/09/2018 at 01:33PM

22
#3294 - Adriano Gattabuia / @abstflow

07/02/2018 at 09:30PM

22
#3295 - Edward Shornock / @EdwardShornock

07/04/2018 at 04:26PM

22
#3296 - ¬¬¬ ¬¬¬ / @WLq3KGhxohrCPl1

07/09/2018 at 01:07AM

22
#3297 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 04:25PM

22
#3298 - Jules RIGOMONT / @rigomontj

07/29/2018 at 08:05PM

22
#3299 - James Lee / @JamesJLLee

08/04/2018 at 08:58PM

22
#3300 - SirMizou / @SirMizou

09/25/2018 at 10:59PM