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

4071 active golfers, 15593 entries

Leaderboard (lowest score wins):
12
#1291 - シカ / @pigaccel

06/09/2017 at 12:43AM

12
#1292 - moritz / @moritz45081535

06/18/2017 at 01:16PM

12
#1293 - YamasakiKenta / @ymknjugg

06/24/2017 at 09:37AM

12
#1294 - Jacob Buete / @JBuete

07/04/2017 at 12:41AM

12
#1295 - Julian Felix / @h4wked

07/06/2017 at 01:37PM

12
#1296 - Rowan Tree / @RowanTr88447528

07/21/2017 at 10:23AM

12
#1297 - Plop plop / @plopplopplop6

08/07/2017 at 07:59PM

12
#1298 - Jonathan Eidsness / @jonathaneidsnes

08/11/2017 at 10:31PM

12
#1299 - SirVimGolf / @SirVimGolf

08/23/2017 at 08:56PM

12
#1300 - Marc Grimpo / @MarcGrimpo

08/26/2017 at 11:27AM

12
#1301 - Connor O'Brien / @swiftest_panda

08/26/2017 at 08:32PM

12
#1302 - dayshade / @dayshade_7

09/01/2017 at 09:01AM

12
#1303 - Markus Bohl / @bohl_markus

09/09/2017 at 07:44PM

12
#1304 - harpocrates744 / @harpocrates744

09/10/2017 at 10:30PM

12
#1305 - Cyhors / @Cyhors

09/13/2017 at 03:50PM

12
#1306 - elmoloves / @ElmoLovesSilly

09/19/2017 at 11:16PM

12
#1307 - xer0.5ive / @Bibekshah

09/22/2017 at 08:24PM

12
#1308 - Ewoud Smeur / @Ewoud90

09/29/2017 at 08:44AM

12
#1309 - Stephen Betts / @stephenbetts

10/03/2017 at 04:40PM

12
#1310 - Kai Hübner / @knollenkopp

10/24/2017 at 06:52PM

12
#1311 - Piotr Dołowy / @owy_do

11/06/2017 at 06:03PM

12
#1312 - Eric Johnson / @dej79

11/12/2017 at 04:31PM

12
#1313 - Hawk Newton / @hawknewton

11/13/2017 at 10:08PM

12
#1314 - QingyuZhao / @zhao_qingyu

11/21/2017 at 07:42AM

12
#1315 - deepak / @utopianmonk

12/23/2017 at 10:56PM

12
#1316 - Joe Kerian / @kerian

01/08/2018 at 09:25PM

12
#1317 - Luong Nguyen / @LuongNguyen_95

01/14/2018 at 07:46AM

12
#1318 - genoskill / @Genoskill

01/29/2018 at 01:07AM

12
#1319 - Infinity Delta / @InfinityDelta

01/31/2018 at 10:56PM

12
#1320 - Max Horn / @maexlich

03/02/2018 at 10:43PM