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
#2761 - Richard / @rpmerry

10/09/2017 at 02:47PM

17
#2762 - Zakaria ANBARI / @abualy4400

10/12/2017 at 04:10PM

17
#2763 - Ron Alexssen / @Ralexhere

10/12/2017 at 11:43PM

17
#2764 - Sébastien Canart / @kokotchY

10/28/2017 at 08:33AM

17
#2765 - Danila Dergachev / @daniladergachev

11/03/2017 at 11:20AM

17
#2766 - Philippe / @cloonn1

11/03/2017 at 08:46PM

17
#2767 - Markus Ankenbrand / @IIMOG

11/04/2017 at 09:40AM

17
#2768 - Yuya Aoki / @robokinoko

11/20/2017 at 06:44AM

17
#2769 - Eric Friday / @fridayeric

11/23/2017 at 03:56PM

17
#2770 - tiberiu lepadatu / @tiberiulepadatu

12/20/2017 at 07:10PM

17
#2771 - eddie leon / @_eddie_leon

01/24/2018 at 09:52PM

17
#2772 - ArizonaPampa / @ArizonaPampa

01/30/2018 at 02:45PM

17
#2773 - xyz / @menhej

02/03/2018 at 12:11AM

17
#2774 - thoughts / @bonchodiaries

02/18/2018 at 06:53AM

17
#2775 - Roger Zurawicki / @zurawiki

02/21/2018 at 04:55AM

17
#2776 - Фомин Денис / @TaPO4eg3D

02/21/2018 at 06:30AM

17
#2777 - Tris-tan / @questionblob

02/21/2018 at 09:43PM

17
#2778 - elsie / @elsie06177256

02/21/2018 at 09:52PM

17
#2779 - mikelplhts / @mikelplhts

02/25/2018 at 02:14AM

17
#2780 - Troy Spruit / @densefog

02/26/2018 at 03:37PM

17
#2781 - Klaus-Peter Schreiner / @KlaPeSch13

03/01/2018 at 08:48AM

17
#2782 - JK / @QuFeld

03/01/2018 at 06:41PM

17
#2783 - JULITE / @JULIPTU

03/20/2018 at 07:47PM

17
#2784 - Austin Gundry / @a_gundry

03/21/2018 at 07:39PM

17
#2785 - Andrew Thal / @athal7

03/23/2018 at 01:27AM

17
#2786 - Akilan Anbalagan / @akilananb

03/27/2018 at 01:00PM

17
#2787 - Alex Koch 👨‍🍳👨‍💻🌹 / @alex_w_k

04/05/2018 at 10:03PM

17
#2788 - Florent Jaby / @Floby

04/09/2018 at 03:45PM

17
#2789 - WordPressToGo / @WordPressToGo

04/13/2018 at 12:14PM

17
#2790 - KoboldTheGreat / @koboldthegreat

04/14/2018 at 01:19PM