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

3923 active golfers, 14977 entries

Leaderboard (lowest score wins):
14
#1891 - Golf Gopher / @GolfGopher3

08/17/2020 at 07:52PM

14
#1892 - CultureOfCritique / @OfCritique

08/20/2020 at 03:41AM

14
#1893 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 01:19AM

14
#1894 - Alex Daum / @JustBeAwesomer

08/21/2020 at 12:12PM

14
#1895 - Olle Nordesjö / @Rasinj

08/21/2020 at 10:22PM

14
#1896 - ne0-1 / @ne0_01

08/28/2020 at 01:03PM

14
#1897 - Camilo A. Matajira / @CamiloMatajira

08/30/2020 at 11:17AM

14
#1898 - Luc Kien Hang / @luckienhang

09/03/2020 at 11:56PM

14
#1899 - Muffin / @Muffin91707986

09/05/2020 at 08:18AM

14
#1900 - yhgolf / @yhgolf1

09/05/2020 at 03:53PM

14
#1901 - Pepe / @PedroVassena

09/08/2020 at 07:44AM

14
#1902 - alrito / @alrito6

09/10/2020 at 06:32AM

14
#1903 - Kurt Keller / @KurtKeller

09/16/2020 at 09:31PM

14
#1904 - Yannick / @Yannick88147038

09/20/2020 at 06:30PM

14
#1905 - Sergey Yakovlev / @selfuryon

09/21/2020 at 10:22AM

15
#1906 - CJ Avilla / @wizemanip

11/12/2014 at 04:49AM

15
#1907 - Nadav Spiegelman / @nadavspi

11/12/2014 at 05:01AM

15
#1908 - Heath Patterson / @HeathPatterson

11/12/2014 at 11:53AM

15
#1909 - Lieven Keersmaekers / @LievenKeersmaek

11/12/2014 at 07:35PM

15
#1910 - Thomas Geßler / @th_gessler

11/15/2014 at 10:57AM

15
#1911 - Michi Loro / @michiloro

11/20/2014 at 10:11AM

15
#1912 - Adrien Canuel / @AdrienCanuel

11/20/2014 at 02:07PM

15
#1913 - David Foucher / @tyjak

11/26/2014 at 12:14AM

15
#1914 - Erik Buček / @_EnterNameHere_

11/26/2014 at 01:23PM

15
#1915 - Alex Serebryakov / @Doc_Livesey

12/01/2014 at 10:06AM

15
#1916 - Janko Marohnić / @jankomarohnic

12/06/2014 at 08:58AM

15
#1917 - Pierre Houssin / @PierreHoussin

12/16/2014 at 08:10PM

15
#1918 - Matthew Sterritt / @GodJinrai

12/19/2014 at 06:26PM

15
#1919 - Michael Foley / @m1foley

12/29/2014 at 12:59AM

15
#1920 - Hiroshi Kato / @kato1628

01/10/2015 at 11:40AM