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):
14
#1291 - Christopher Brew / @Seph1rothVII

11/14/2014 at 11:58PM

14
#1292 - Mauro Persano / @fzort

11/15/2014 at 02:19PM

14
#1293 - Jan Novak / @odpadnimail

11/18/2014 at 11:39PM

14
#1294 - Philip Ince / @philipince

11/19/2014 at 11:11AM

14
#1295 - Tiago Royer / @royertiago

11/20/2014 at 02:27AM

14
#1296 - tacke / @tacke_jp

11/20/2014 at 04:06PM

14
#1297 - とーま / @Amothic

11/20/2014 at 05:01PM

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

11/21/2014 at 12:10AM

14
#1299 - Harold Pong / @har2po

11/21/2014 at 02:31PM

14
#1300 - Chris Brown / @engineercyb

11/22/2014 at 12:04AM

14
#1301 - retired account / @retired10072015

11/22/2014 at 06:18PM

14
#1302 - Rasmus P / @rasmup

11/23/2014 at 01:20PM

14
#1303 - Carlos López / @morrizon

11/27/2014 at 10:23AM

14
#1304 - Quinn McHenry / @qmchenry

11/28/2014 at 01:21PM

14
#1305 - Jiang, X. / @_Mr_Jiang

11/30/2014 at 05:15PM

14
#1306 - Baiqian / @baiqian2008

12/04/2014 at 07:21AM

14
#1307 - benneil / @benneil

12/04/2014 at 05:43PM

14
#1308 - Sungkeun Cho / @skchooo

12/06/2014 at 07:16AM

14
#1309 - David Tenreiro / @AxDATF

12/07/2014 at 05:56AM

14
#1310 - buz / @buzbone

12/07/2014 at 11:30AM

14
#1311 - Yan Yang / @_YanYang

12/08/2014 at 10:11AM

14
#1312 - Eric Lawless / @eplawless

12/10/2014 at 08:01AM

14
#1313 - Gabor Lekeny / @leki75

12/11/2014 at 12:26PM

14
#1314 - Jens Weggemann / @JensWeggemann

12/12/2014 at 05:35AM

14
#1315 - Martin Habovštiak / @kixunil

12/13/2014 at 10:06PM

14
#1316 - 1upまむ9 / @mamunine

12/16/2014 at 01:23PM

14
#1317 - Edward Brown / @ChazKato

12/16/2014 at 06:30PM

14
#1318 - kelevra / @kelevra19951823

12/17/2014 at 09:57PM

14
#1319 - きよ / @Mr_kiyo

12/18/2014 at 01:09PM

14
#1320 - ぷりケツにるぽ / @nillpo

12/19/2014 at 08:14AM