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

3920 active golfers, 14968 entries

Leaderboard (lowest score wins):
14
#1531 - Robert Goeddel / @f0rdpr3fect

11/09/2015 at 09:57PM

14
#1532 - Dave Powell / @d_pow_pow

11/14/2015 at 08:45PM

14
#1533 - Angus McInnes / @eigenstuff

11/24/2015 at 10:14AM

14
#1534 - Johannes K / @JohannesK9

12/04/2015 at 07:26PM

14
#1535 - Sean Stout / @s183s657

12/09/2015 at 08:05AM

14
#1536 - brett / @brettyukich

12/10/2015 at 09:39PM

14
#1537 - Dustin Langewisch / @dlangewisch1

12/16/2015 at 08:35AM

14
#1538 - Sebastian Nickel / @tumblingwhimsy

12/23/2015 at 06:15PM

14
#1539 - aanton / @aanton

12/25/2015 at 08:27PM

14
#1540 - Mirko Grönroos / @hermo

01/06/2016 at 08:51AM

14
#1541 - Austin Wood / @indiesquidge

01/14/2016 at 05:57PM

14
#1542 - alcinos / @alcinos69

01/24/2016 at 12:09PM

14
#1543 - Maciej Woźniak / @eldhash

01/25/2016 at 11:45PM

14
#1544 - Ben Friedland / @bfriedland174

01/28/2016 at 08:11PM

14
#1545 - Sassan Haradji / @sassanh

01/30/2016 at 07:11AM

14
#1546 - Sheapel User / @sheapeluser

02/01/2016 at 01:32PM

14
#1547 - GarrettPeterson / @GarrettPeterson

02/10/2016 at 12:03AM

14
#1548 - leroy / @leroypubel

02/21/2016 at 09:50AM

14
#1549 - fzort / @fzort

02/28/2016 at 02:06PM

14
#1550 - de Chezelles Benoit / @BenoitBew78

03/03/2016 at 05:54PM

14
#1551 - Dylan / @helloasdff

03/03/2016 at 09:15PM

14
#1552 - Mister Knister / @vimgolf_ctrl_x

03/04/2016 at 12:44PM

14
#1553 - Piotr Madaliński / @MadalinskiPiotr

03/06/2016 at 07:44PM

14
#1554 - Léo Ercolanelli / @ercolanellileo

03/23/2016 at 05:24PM

14
#1555 - Nick Licitra / @nlicitra

03/24/2016 at 05:09PM

14
#1556 - Josh Finnie / @joshfinnie

03/24/2016 at 05:09PM

14
#1557 - Chenut Ludovic / @7Brwa7

03/31/2016 at 07:58PM

14
#1558 - jb M / @Jiboo_hey

04/20/2016 at 06:39PM

14
#1559 - tPenguinLTG / @tpenguinltg

04/25/2016 at 04:30AM

14
#1560 - iNaKoll / @iNaKoll

05/07/2016 at 08:33PM