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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
17
#2701 - KangHun Seo / @shirano80

10/24/2016 at 05:44AM

17
#2702 - Jonathan Elliott / @jon__elliott

10/29/2016 at 02:52PM

17
#2703 - Hector Davensburg / @hdavensburg

11/09/2016 at 12:11AM

17
#2704 - Aurélien Vallée / @aurelienvallee

11/11/2016 at 05:56AM

17
#2705 - TiByte / @tibyte

11/20/2016 at 12:45PM

17
#2706 - Guillermo Guirao / @Funkatic

11/24/2016 at 08:47AM

17
#2707 - Nguyen Duc Tam / @tamnd87

11/24/2016 at 10:45AM

17
#2708 - Phuc Ngo Hoang Anh / @nhap96

11/24/2016 at 11:00AM

17
#2709 - davidcgv / @davidcgv

11/27/2016 at 09:42PM

17
#2710 - p2ni / @p2noc

12/10/2016 at 07:35PM

17
#2711 - MS / @mislusnys

12/12/2016 at 08:04PM

17
#2712 - 21389104298208943812 / @j1359534

12/12/2016 at 10:55PM

17
#2713 - Billy Bob / @fonduman2

12/17/2016 at 10:48PM

17
#2714 - Mattias GABRIEL / @matou008

12/20/2016 at 09:13PM

17
#2715 - さよきみ / @MrIn1121

12/23/2016 at 03:24PM

17
#2716 - Cody F H / @codyfh

12/23/2016 at 07:51PM

17
#2717 - daHueby / @daHueby

01/04/2017 at 04:45PM

17
#2718 - Tristan Weinland / @TristanWeinland

01/12/2017 at 10:23PM

17
#2719 - Joel T / @joel31415

01/30/2017 at 02:54PM

17
#2720 - Harold Treen / @haroldtreen

02/03/2017 at 02:16AM

17
#2721 - vasco s otsuka / @vascoosx

02/06/2017 at 10:38AM

17
#2722 - 遊騎 / @YukiyasuKK

02/19/2017 at 03:01PM

17
#2723 - Zack Orndorff / @ZackOrndorff

03/04/2017 at 07:03PM

17
#2724 - Adi Ron / @notadiron

03/10/2017 at 08:21AM

17
#2725 - Zachary Neubert / @Mr_Saturn16347

03/10/2017 at 09:26PM

17
#2726 - Moritz Sauter / @MoritzSauter

03/14/2017 at 04:10PM

17
#2727 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:35PM

17
#2728 - Siim Põder / @siimphh

04/26/2017 at 09:34PM

17
#2729 - Doug Chan / @Coufu

04/28/2017 at 04:26PM

17
#2730 - Paul Beaudoin / @nonword

05/01/2017 at 06:49PM