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):
13
#1261 - ハヤシ / @0__098

03/11/2019 at 02:34AM

13
#1262 - Murmus / @MurmusCTF

03/29/2019 at 03:58PM

13
#1263 - Mark Stillwell / @marklee77

04/04/2019 at 09:23PM

13
#1264 - Jaan Toots / @JaanToots

04/18/2019 at 03:32PM

13
#1265 - Vitaly Sinilin / @unterwulf

05/15/2019 at 01:15PM

13
#1266 - throw away / @f44lyf

05/29/2019 at 10:42PM

13
#1267 - hiro_3_1 / @hiroshi160301

06/20/2019 at 10:51AM

13
#1268 - yovimaster / @yovimaster

07/03/2019 at 07:31AM

13
#1269 - Petru-Armand Bancila / @petruarmand

07/08/2019 at 11:36PM

13
#1270 - 张忠荣 / @ZZRcooperation

08/07/2019 at 11:08AM

13
#1271 - Алексей Кашуба / @Alex_Kashuba

08/31/2019 at 08:05PM

13
#1272 - Miko / @_m_ik_o_

09/26/2019 at 03:04PM

13
#1273 - brypto / @hiimbenjy

09/30/2019 at 10:00PM

13
#1274 - Kevin Yokley / @kyokley19

11/03/2019 at 06:08PM

13
#1275 - Coby Drexler / @CobyDrexler

12/16/2019 at 12:59AM

13
#1276 - Scott G. / @ScottG489

02/29/2020 at 06:31PM

13
#1277 - bluemartian / @bluemartianz59

03/25/2020 at 06:32PM

13
#1278 - Stian Selnes / @stianse

04/23/2020 at 05:28PM

13
#1279 - Bob Streams / @BobStreams1

06/01/2020 at 07:49PM

14
#1280 - Hans Liu / @zhansliu

11/12/2014 at 08:40AM

14
#1281 - Tim Chase / @gumnos

11/12/2014 at 09:03AM

14
#1282 - Kai Yuan / @kentyuan

11/12/2014 at 12:47PM

14
#1283 - James / @Dronak

11/13/2014 at 02:58AM

14
#1284 - mnx / @mnxx

11/13/2014 at 10:42AM

14
#1285 - Davit Samvelyan / @DavitSamvelyan

11/13/2014 at 11:44AM

14
#1286 - kungfuchad / @kungfuchad

11/13/2014 at 12:24PM

14
#1287 - Marcelo Montu / @_mMontu_

11/13/2014 at 04:48PM

14
#1288 - Bambu / @bambumandinga

11/13/2014 at 11:51PM

14
#1289 - Samuel Masuy / @samasuy

11/14/2014 at 11:09PM

14
#1290 - M T / @bahkyp

11/14/2014 at 11:51PM