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):
14
#1321 - James / @Dronak

11/13/2014 at 02:58AM

14
#1322 - mnx / @mnxx

11/13/2014 at 10:42AM

14
#1323 - Davit Samvelyan / @DavitSamvelyan

11/13/2014 at 11:44AM

14
#1324 - kungfuchad / @kungfuchad

11/13/2014 at 12:24PM

14
#1325 - Marcelo Montu / @_mMontu_

11/13/2014 at 04:48PM

14
#1326 - Bambu / @bambumandinga

11/13/2014 at 11:51PM

14
#1327 - Samuel Masuy / @samasuy

11/14/2014 at 11:09PM

14
#1328 - M T / @bahkyp

11/14/2014 at 11:51PM

14
#1329 - Christopher Brew / @Seph1rothVII

11/14/2014 at 11:58PM

14
#1330 - Mauro Persano / @fzort

11/15/2014 at 02:19PM

14
#1331 - Jan Novak / @odpadnimail

11/18/2014 at 11:39PM

14
#1332 - Philip Ince / @philipince

11/19/2014 at 11:11AM

14
#1333 - Tiago Royer / @royertiago

11/20/2014 at 02:27AM

14
#1334 - tacke / @tacke_jp

11/20/2014 at 04:06PM

14
#1335 - とーま / @Amothic

11/20/2014 at 05:01PM

14
#1336 - Kuniwak@早すぎた抽象化おじさん / @orga_chem

11/21/2014 at 12:10AM

14
#1337 - Harold Pong / @har2po

11/21/2014 at 02:31PM

14
#1338 - Chris Brown / @engineercyb

11/22/2014 at 12:04AM

14
#1339 - retired account / @retired10072015

11/22/2014 at 06:18PM

14
#1340 - Rasmus P / @rasmup

11/23/2014 at 01:20PM

14
#1341 - Carlos López / @morrizon

11/27/2014 at 10:23AM

14
#1342 - Quinn McHenry / @qmchenry

11/28/2014 at 01:21PM

14
#1343 - Jiang, X. / @_Mr_Jiang

11/30/2014 at 05:15PM

14
#1344 - Baiqian / @baiqian2008

12/04/2014 at 07:21AM

14
#1345 - benneil / @benneil

12/04/2014 at 05:43PM

14
#1346 - Sungkeun Cho / @skchooo

12/06/2014 at 07:16AM

14
#1347 - David Tenreiro / @AxDATF

12/07/2014 at 05:56AM

14
#1348 - buz / @buzbone

12/07/2014 at 11:30AM

14
#1349 - Yan Yang / @_YanYang

12/08/2014 at 10:11AM

14
#1350 - Eric Lawless / @eplawless

12/10/2014 at 08:01AM