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
#721 - radrhin / @radrhin

04/19/2018 at 04:47PM

10
#722 - Victor Ashton / @victor_ashton

04/27/2018 at 12:14AM

10
#723 - Leonardo Pistone / @lepistone

04/29/2018 at 02:32PM

10
#724 - Milan Ľudma / @turiec_

04/29/2018 at 08:53PM

10
#725 - Vladimir Volkov / @neitrin

05/02/2018 at 02:34PM

10
#726 - vimthrowaway / @vimgolf_throw

05/02/2018 at 05:06PM

10
#727 - mdgill / @mdgill

05/03/2018 at 02:31PM

10
#728 - vimgolf / @vimgolf2

05/03/2018 at 07:31PM

10
#729 - Alexey Shiklomanov / @ashiklom711

05/04/2018 at 01:20PM

10
#730 - Alain / @carpikes

05/04/2018 at 01:45PM

10
#731 - golfer / @golfer30767399

05/04/2018 at 05:30PM

10
#732 - Rui Su / @RuiSuTwi

05/05/2018 at 08:20AM

10
#733 - Thies / @Thies93083981

05/07/2018 at 11:14AM

10
#734 - Aunt Jovie / @auntjovie

05/09/2018 at 10:36PM

10
#735 - Paul Draghicescu / @pdragy

05/10/2018 at 10:35PM

10
#736 - golfal / @golfal2

05/13/2018 at 02:19AM

10
#737 - Josh Callender / @Saponifi3d

05/20/2018 at 06:56AM

10
#738 - Chien-Wei Sun / @chienweisun

05/20/2018 at 04:57PM

10
#739 - Matt Aschmann / @ma7hatter

05/21/2018 at 04:18PM

10
#740 - chu zui / @chuzui7

05/29/2018 at 09:40AM

10
#741 - omrisarig / @omrisarig

06/02/2018 at 05:57PM

10
#742 - crateus / @crateus4

06/06/2018 at 01:49PM

10
#743 - Davidoir / @Davidoir

06/06/2018 at 02:13PM

10
#744 - 中野 彰 / @M__tech

06/09/2018 at 10:11AM

10
#745 - Xiangyu Xu / @bkbncn

06/10/2018 at 07:30AM

10
#746 - wolnosc / @wolnosc5

06/10/2018 at 09:42PM

10
#747 - Kris Ezra / @kris_ezra

06/12/2018 at 06:30PM

10
#748 - Ryan Connolly / @ryanconnnolly

06/23/2018 at 09:35AM

10
#749 - Justin Hoyt / @JustinHoyt24

06/23/2018 at 05:54PM

10
#750 - Daniël De Koker / @daniel_koker

06/24/2018 at 09:26AM