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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
10
#811 - Bennett / @bennettbackward

12/19/2018 at 11:21AM

10
#812 - Ackman Syntax Error / @AckmanSux

12/22/2018 at 12:45AM

10
#813 - xiong yuwu / @xiongyuwu

12/27/2018 at 09:38AM

10
#814 - William Robson / @wnrbs

01/02/2019 at 12:27AM

10
#815 - segfaultノススメ / @umaiumi

01/11/2019 at 04:16AM

10
#816 - Dan Yeaw / @danyeaw

01/13/2019 at 02:41AM

10
#817 - adir ohayon / @AdirKip

01/13/2019 at 10:17AM

10
#818 - heppen / @heppen_He

01/13/2019 at 01:43PM

10
#819 - Benjamin Davies / @Benjami77142111

01/13/2019 at 07:25PM

10
#820 - たくみー(転職ドラシル) / @reirei_As

01/15/2019 at 07:46AM

10
#821 - Thomas Surlykke / @THSurlykke

01/17/2019 at 12:18AM

10
#822 - Mario Olofo / @mario_olofo

01/18/2019 at 02:33AM

10
#823 - Stefano Bettani / @StefanoBettani

01/19/2019 at 03:21PM

10
#824 - Szkieletor / @gh_end_

01/24/2019 at 07:02AM

10
#825 - tenteke / @kuskus3

01/25/2019 at 03:40PM

10
#826 - band / @band26376522

01/26/2019 at 08:03PM

10
#827 - Tinko Minko / @tandikula

01/27/2019 at 07:44AM

10
#828 - brian / @b_

01/28/2019 at 01:37AM

10
#829 - Dominic Z / @thammaaa

02/01/2019 at 02:00PM

10
#830 - Ng Sek Long / @NgSekLong

02/09/2019 at 02:53PM

10
#831 - Filipe Brandenburger / @filbranden

02/17/2019 at 08:23AM

10
#832 - Pierre Beitz / @PierreBeitz

02/17/2019 at 10:28PM

10
#833 - sjcomp / @sjcomp

02/22/2019 at 06:17PM

10
#834 - sisi100 / @s1si100

02/25/2019 at 03:51AM

10
#835 - scottarver / @scottarver

03/01/2019 at 03:53AM

10
#836 - Robert Orr / @orrrobert

03/09/2019 at 02:26AM

10
#837 - Isaak Meier / @IsaakMeier

03/12/2019 at 04:20PM

10
#838 - enji / @enji_ja

03/18/2019 at 10:13AM

10
#839 - longB / @longB77353628

03/19/2019 at 06:52AM

10
#840 - k24w24 / @k24w24

03/20/2019 at 11:54AM