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

3854 active golfers, 14691 entries

Leaderboard (lowest score wins):
35
#3811 - Paul Chandler / @chandlpa

03/05/2015 at 12:48AM

35
#3812 - Danny / @dannywood1976

05/07/2019 at 09:04AM

35
#3813 - dahara / @kuma_moooon

10/21/2019 at 10:14AM

36
#3814 - GrupoCITEC / @GrupoCITEC

01/15/2015 at 02:59AM

36
#3815 - Jean Carlo Machado / @JeanCarloMachad

04/18/2015 at 01:05PM

36
#3816 - Eric Man / @ericmanlol

07/01/2018 at 03:33PM

36
#3817 - shimamoto / @_sim_a

08/15/2018 at 06:19AM

36
#3818 - Cole Hudson / @colejhudson

11/21/2018 at 06:16PM

37
#3819 - Jef Vlamings / @jefvlamings

10/04/2017 at 02:49PM

37
#3820 - saurabh tripathi / @saurabh908583

08/10/2018 at 04:28AM

38
#3821 - しょーへー / @pasopeko

01/24/2015 at 02:37PM

38
#3822 - The9ain / @the9ain

08/03/2018 at 01:42AM

38
#3823 - Lydia Cupery / @LCupery

10/20/2018 at 06:34PM

39
#3824 - Zhao Bin / @ZhaoBin2

06/08/2016 at 03:05PM

39
#3825 - Griffin Potrock / @griffpotrock

09/24/2018 at 10:46PM

39
#3826 - ram / @rambory

01/25/2020 at 06:47AM

39
#3827 - Anish / @AnishSrivatsa

05/23/2020 at 06:40PM

39
#3828 - ☭☭☭☭☭🇧🇷☭☭☭☭☭ / @CoachComunista

05/28/2020 at 12:21AM

40
#3829 - Brendan Killalea / @bkduoduo

05/11/2015 at 03:08PM

40
#3830 - Cawan Porto / @cawanporto

12/28/2017 at 05:48PM

40
#3831 - Lorenzo Swank / @lswank

01/06/2019 at 05:36AM

40
#3832 - MGJoe93 / @mgjoe93

03/02/2019 at 01:12PM

41
#3833 - hek / @hek

01/21/2015 at 07:27PM

42
#3834 - Briana Baker / @brianacodes

12/21/2018 at 09:46PM

44
#3835 - Tsatsi Mahase / @tsatsi_mahase

12/15/2014 at 06:16PM

44
#3836 - 阑珊灯火 / @PercyLixc

06/21/2018 at 12:40PM

44
#3837 - {{ profile.name }} / @bytesonly

04/20/2020 at 12:03PM

46
#3838 - @-----{} / @DavidAr99288709

10/14/2019 at 09:57AM

48
#3839 - shellfire32 / @shellfire32

11/25/2016 at 02:05PM

48
#3840 - Haishan / @carlhan

03/03/2017 at 04:47PM