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
#1321 - Andrew Leung / @aleungpivotal

12/19/2014 at 08:00PM

14
#1322 - ゆきみ / @edp02

12/20/2014 at 11:14AM

14
#1323 - winterlight / @winterlight4

12/21/2014 at 11:16AM

14
#1324 - Lucas Groenendaal / @LucasGroenendaa

12/22/2014 at 03:06AM

14
#1325 - Maximiliano Padulo / @mpadulo

12/25/2014 at 10:29PM

14
#1326 - Jake Eskel / @JakeEskel

12/28/2014 at 06:02AM

14
#1327 - Paul / @paxlzi

12/28/2014 at 10:40PM

14
#1328 - yachi / @yaachi

12/29/2014 at 05:07AM

14
#1329 - Filipe Almeida / @filipe_almeida

12/31/2014 at 01:57AM

14
#1330 - kawas / @kawas44

01/01/2015 at 01:55PM

14
#1331 - Gwilym Kuiper / @gwilymk

01/04/2015 at 02:00PM

14
#1332 - David Wright / @David27Wright

01/08/2015 at 10:10PM

14
#1333 - blamitter ✏️ / @blamitter

01/09/2015 at 07:37PM

14
#1334 - Oli Lalonde / @o_lalonde

01/11/2015 at 08:57AM

14
#1335 - makohoek / @MattijsKorp

01/12/2015 at 12:40PM

14
#1336 - Ulysse Carion / @ucarion

01/13/2015 at 03:35AM

14
#1337 - Dr. Rev. J. "Paranoid Android" Kirchartz / @JKirchartz

01/14/2015 at 05:07AM

14
#1338 - low_ghost / @low_ghost_clone

01/17/2015 at 01:20PM

14
#1339 - Dmitry V. Alexeev / @alexeevdv

01/17/2015 at 02:39PM

14
#1340 - Aaron Whittington / @whittaaron

01/17/2015 at 11:30PM

14
#1341 - Christian Prehl / @prehlDE

01/19/2015 at 12:03PM

14
#1342 - Arno ℇrpenbeck / @javacgn

01/19/2015 at 12:12PM

14
#1343 - Иоаннъ / @Vaneskot

01/20/2015 at 03:11PM

14
#1344 - Orlov Sergey / @OrlovSA

01/21/2015 at 05:54AM

14
#1345 - SuperJediWombat / @SuperJediWombat

01/22/2015 at 01:16PM

14
#1346 - Adam Stankiewicz / @sheerun

01/25/2015 at 07:30PM

14
#1347 - Shahaf A / @Av3r4ge

01/25/2015 at 09:31PM

14
#1348 - no name / @vimgol

01/27/2015 at 07:12PM

14
#1349 - Will Nicht / @kein_name_fuer

01/31/2015 at 03:33PM

14
#1350 - Stephen Crosby / @stevecrozz

02/03/2015 at 06:10AM