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

3806 active golfers, 14477 entries

Leaderboard (lowest score wins):
14
#1411 - Rob Milward / @RobMilward

04/09/2015 at 10:18PM

14
#1412 - Bradley Hardy / @bradleyishardy

04/12/2015 at 01:32PM

14
#1413 - Britt Lewis / @p3ery

04/17/2015 at 11:14PM

14
#1414 - i5513 / @i5513

04/20/2015 at 09:23PM

14
#1415 - nulusr / @nulusr

04/21/2015 at 10:43AM

14
#1416 - Michael Cramer / @mlcramer

04/25/2015 at 01:40PM

14
#1417 - Antony Scriven / @antonyscriven

04/27/2015 at 08:24AM

14
#1418 - e / @e1914_2014

04/30/2015 at 04:47PM

14
#1419 - Seva Lef / @SevaLef

05/01/2015 at 01:53PM

14
#1420 - Gael Roue / @gaelroue

05/02/2015 at 01:10PM

14
#1421 - Alan Rafael / @alanrrb

05/03/2015 at 03:53AM

14
#1422 - diziet.sma / @diziet__sma

05/04/2015 at 11:31PM

14
#1423 - Niels Madan / @nielsmadan

05/07/2015 at 09:38AM

14
#1424 - Rui Mendes / @rcm_dium

05/07/2015 at 07:25PM

14
#1425 - Pallav Agarwal / @pallavagarwal07

05/08/2015 at 10:23AM

14
#1426 - Rickard Fransson / @xxRion

05/11/2015 at 08:30PM

14
#1427 - Brian Lai / @blaiym

05/11/2015 at 10:10PM

14
#1428 - Charles Martin / @instinctive

05/12/2015 at 03:51PM

14
#1429 - Tom van der Lee / @TomVdLee

05/13/2015 at 07:17AM

14
#1430 - Emil Soman / @emilsoman

05/17/2015 at 04:52PM

14
#1431 - Rho's SB / @rhossb

05/19/2015 at 03:49AM

14
#1432 - Philippe Voinov / @tehwalris

05/19/2015 at 03:19PM

14
#1433 - François Marais / @maraisf

05/21/2015 at 07:05PM

14
#1434 - Fábio Perez / @fabioperez

05/26/2015 at 09:38PM

14
#1435 - David Rogers / @al_the_x

05/27/2015 at 09:39PM

14
#1436 - STOOFAN / @guacpowercrunch

05/28/2015 at 06:44AM

14
#1437 - Marc Coquand / @MarcCoquand

05/28/2015 at 10:28PM

14
#1438 - Adetque / @Adetque

05/29/2015 at 07:46AM

14
#1439 - Ghoot Emaho / @GhootEmaho

05/31/2015 at 03:24PM

14
#1440 - Sir Chauffeur / @sebdul

06/01/2015 at 01:14PM