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
#1801 - Jason Chen / @chezbgone

02/18/2020 at 04:58AM

14
#1802 - brightlyopen / @brightlyopen

02/22/2020 at 08:23PM

14
#1803 - Strages / @Strages2k

02/23/2020 at 02:10AM

14
#1804 - golferN / @golferN3

02/25/2020 at 09:25PM

14
#1805 - Ryan Nevius / @ryannevius

03/16/2020 at 09:55AM

14
#1806 - Casey Rodarmor / @rodarmor

04/02/2020 at 04:00PM

14
#1807 - Nick Lee / @TooManyNickLees

04/04/2020 at 10:10PM

14
#1808 - RaylanFox / @RaylanFox

04/06/2020 at 06:15PM

14
#1809 - mackermann / @mackermann12

04/12/2020 at 07:21PM

14
#1810 - Toby de Havilland / @tobydeh

04/19/2020 at 08:52AM

14
#1811 - volandkit / @volandkit

04/20/2020 at 04:27PM

14
#1812 - まーしぃ🐢💨 / @marcymaplemug

04/26/2020 at 12:34PM

14
#1813 - John Sumner / @rjsumner

04/26/2020 at 07:50PM

14
#1814 - Rob Pilling / @bobrippling

04/28/2020 at 09:07AM

14
#1815 - Jens Nolte / @jens_n

04/28/2020 at 11:50PM

14
#1816 - dule2607 / @dule26071

05/02/2020 at 11:27AM

14
#1817 - Quentin Leroy / @qnleroy

05/08/2020 at 09:04AM

14
#1818 - Neil Earnshaw / @neilearnshaw

05/09/2020 at 05:33PM

14
#1819 - Андриянов Роман / @angeldeath29

05/10/2020 at 03:53PM

14
#1820 - yyang / @yyang25803679

05/10/2020 at 07:03PM

14
#1821 - Bhagwan / @El_Bhagwan

05/11/2020 at 04:44AM

14
#1822 - Fnord Everywhere / @FnordE

05/11/2020 at 12:47PM

14
#1823 - Pawel Wenda / @pwlwnd

05/13/2020 at 10:17AM

14
#1824 - Manikkumar / @ManikkumarK

05/17/2020 at 01:22AM

14
#1825 - Lucas_Elsen / @DuVrangrGata18

05/17/2020 at 03:11PM

14
#1826 - Salman AlSaigal / @Salman_AlSaigal

05/20/2020 at 12:37AM

14
#1827 - 𝓂𝒿𝓇 ∋ ℝ / @real_mjr

05/21/2020 at 12:51PM

14
#1828 - Mark Brown / @markbrowngt

05/26/2020 at 03:48AM

14
#1829 - RockerZZY / @rocker_zzy

05/27/2020 at 12:24PM

14
#1830 - Aidan Wilson / @aidanbwilson

05/28/2020 at 02:20PM