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

3806 active golfers, 14477 entries

Leaderboard (lowest score wins):
10
#871 - TheJoblessGuyTalks / @the_jgt

05/29/2019 at 09:49AM

10
#872 - mkaminaga / @mkmng3

06/03/2019 at 11:22AM

10
#873 - Tim Dean / @Tmdean

06/06/2019 at 05:39PM

10
#874 - Cookie4D / @Cookie4D1

06/06/2019 at 09:13PM

10
#875 - Graeme Smith / @InstaGraeme

06/07/2019 at 10:26AM

10
#876 - BunFluffman / @BFluffman

06/07/2019 at 04:57PM

10
#877 - overlookedhashmap / @overlookedhash1

06/07/2019 at 09:02PM

10
#878 - Eirik Furuseth / @heplaphon

06/11/2019 at 04:09PM

10
#879 - Robin / @0x767570

06/18/2019 at 09:03PM

10
#880 - summingbest / @summingbest

06/19/2019 at 11:54AM

10
#881 - hielke / @hielke24840788

06/23/2019 at 12:33AM

10
#882 - Loric Brevet / @lobre8

06/28/2019 at 10:09PM

10
#883 - Test Account / @testycc

06/29/2019 at 01:46PM

10
#884 - Philip / @vCoRezZ

06/30/2019 at 06:19PM

10
#885 - Lewis Clayton / @l_ew_is

07/09/2019 at 03:22PM

10
#886 - Nathan Knox / @the_nathan_knox

07/10/2019 at 12:12PM

10
#887 - Peter Demin / @peterdemin

07/11/2019 at 05:40PM

10
#888 - ゴエモン(俗稱).born / @_toku_san

07/17/2019 at 09:19AM

10
#889 - Kvazhir / @kvazhir

07/17/2019 at 12:44PM

10
#890 - Noam Koren / @NOSlaver

07/20/2019 at 02:12PM

10
#891 - Hxhxhrra / @hxhxhrra

07/21/2019 at 04:06PM

10
#892 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 11:55AM

10
#893 - Zhenkai W. / @Zhenkai_W

07/26/2019 at 05:01PM

10
#894 - Markus / @ARealAnnoyance

07/29/2019 at 11:42AM

10
#895 - John / @JohnJDoe2

07/31/2019 at 12:27PM

10
#896 - Adam Katz / @AdamKat01277576

07/31/2019 at 03:41PM

10
#897 - Ron Holt / @ron_holt

08/03/2019 at 02:00AM

10
#898 - XiaoXiaoLui / @XiaoXiaoLui1

08/04/2019 at 07:33AM

10
#899 - りんご / @ringo9971

08/06/2019 at 08:20AM

10
#900 - sooqua / @sooqua

08/07/2019 at 04:51PM