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):
16
#2431 - deeplow / @deeplow1337

06/15/2018 at 08:26PM

16
#2432 - Yann VERY / @yannvery

06/25/2018 at 11:06AM

16
#2433 - Šimon Mandlík / @simon_mandlik

06/27/2018 at 01:44PM

16
#2434 - 이규승 / @IAHvPQrHVoh21zG

06/29/2018 at 08:11AM

16
#2435 - nimms / @insofrnet

07/02/2018 at 01:35PM

16
#2436 - Prithu Goswami / @prithu524

07/05/2018 at 06:22AM

16
#2437 - Torsten Hendrich / @TorstenHendrich

07/10/2018 at 09:09AM

16
#2438 - 최종원 / @lastone9182

07/15/2018 at 01:15PM

16
#2439 - Herbert Ilhan / @donjar11

07/23/2018 at 11:17AM

16
#2440 - Seongho Kang / @upgradeksh

07/27/2018 at 08:47AM

16
#2441 - Ian Webster / @iwebst

07/28/2018 at 06:41PM

16
#2442 - _Tpouhuk / @Tpouhuk2

08/01/2018 at 06:03PM

16
#2443 - PCS Solutions / @PeteSolutions

08/09/2018 at 09:57PM

16
#2444 - Christian Fosli / @porridge111

08/12/2018 at 07:37PM

16
#2445 - Noel Qiao / @NoelQiao

08/16/2018 at 01:48AM

16
#2446 - daniel / @daniel31464605

08/22/2018 at 06:45AM

16
#2447 - Ryan Daniels / @RyanNeilDaniels

08/28/2018 at 09:12AM

16
#2448 - Alexander Covington / @ACov96

08/30/2018 at 03:36PM

16
#2449 - 김형창 / @uVmEMZsCgcYvqZi

08/31/2018 at 07:02AM

16
#2450 - Finn Francis / @FinnFrancis

10/26/2018 at 08:51PM

16
#2451 - Anonymos / @cyou_teyi

10/29/2018 at 11:24AM

16
#2452 - faisal / @faisalhackshah

11/25/2018 at 01:51AM

16
#2453 - CptBong / @cpt1bong

11/27/2018 at 11:56PM

16
#2454 - Nick Induni / @NickInduni

11/29/2018 at 01:33AM

16
#2455 - melts / @melts

01/09/2019 at 09:41PM

16
#2456 - Bao Dang / @baodang02

01/12/2019 at 06:29AM

16
#2457 - Oleg Marakhovsky / @OMarakhovsky

01/14/2019 at 12:59PM

16
#2458 - Deepstack / @deepstackux

01/29/2019 at 04:14PM

16
#2459 - hbdgr / @t_hbdgr

01/30/2019 at 09:06PM

16
#2460 - Patrick Lavin / @LavinComputes

01/31/2019 at 07:54PM