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

3922 active golfers, 14974 entries

Leaderboard (lowest score wins):
14
#1651 - Josu Oyanguren / @josuoyanguren

02/05/2018 at 07:42PM

14
#1652 - steph / @brittiskt

02/13/2018 at 01:28PM

14
#1653 - mephory / @mephory

02/14/2018 at 11:30PM

14
#1654 - neopulsar / @_neopulsar_

02/15/2018 at 03:56AM

14
#1655 - Felix Boers / @felixboers

02/18/2018 at 09:42AM

14
#1656 - Alex Chalk / @alexchalk17

03/09/2018 at 04:21AM

14
#1657 - Vim Golfer / @vimgolfing

03/16/2018 at 05:08PM

14
#1658 - Alec Goebel / @bewarethegrue

03/23/2018 at 08:52PM

14
#1659 - dadav 🥀 / @__dadav__

03/24/2018 at 12:05PM

14
#1660 - Dan Schaefer / @lieutdan13

03/30/2018 at 04:40PM

14
#1661 - Михаил Фуфин / @MishaFufin

03/30/2018 at 08:36PM

14
#1662 - Takaaki Onishi / @takaaki024

03/31/2018 at 11:31AM

14
#1663 - Ted Carlsson / @TedCarlsson

03/31/2018 at 04:45PM

14
#1664 - DHM / @DHM29978992

04/09/2018 at 06:54PM

14
#1665 - nomsayin / @nomsayin

04/15/2018 at 06:51PM

14
#1666 - jet / @jameslintaylor

04/20/2018 at 03:21AM

14
#1667 - johnkershaw / @johnkershaw

04/20/2018 at 03:40AM

14
#1668 - unkiwii / @unkiwii0

05/03/2018 at 05:47PM

14
#1669 - Cosmic Frog / @Cozmicfrog

05/04/2018 at 10:09AM

14
#1670 - mohit / @mohit74512835

05/07/2018 at 05:32PM

14
#1671 - Kaydo Alders / @Yousousen

05/07/2018 at 08:50PM

14
#1672 - Rakesh P / @rakeshpgopal

05/21/2018 at 06:26AM

14
#1673 - Tom Ient / @tom_ient

05/24/2018 at 06:12PM

14
#1674 - Rahul Gupta 🎹 / @pezcoder

05/31/2018 at 08:17PM

14
#1675 - Plexigras / @plexigras

06/02/2018 at 06:39PM

14
#1676 - STRIKER-san / @frstrikersan

06/05/2018 at 09:58AM

14
#1677 - Vimg / @Vimg10

06/06/2018 at 11:02AM

14
#1678 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:19AM

14
#1679 - もりお / @9nACjtcQ2NL0Va4

06/08/2018 at 08:20AM

14
#1680 - Norbert / @mullno

06/22/2018 at 05:24PM