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

3809 active golfers, 14487 entries

Leaderboard (lowest score wins):
14
#1831 - Bob / @Bob37174065

06/01/2020 at 01:49PM

14
#1832 - LCY / @Chooneh

06/02/2020 at 06:27AM

14
#1833 - Ben Simmons / @Simmons_Ben

06/03/2020 at 03:58PM

14
#1834 - Jackie / @Jackie57887507

06/05/2020 at 03:22AM

14
#1835 - khedd / @sinan_khedd

06/14/2020 at 03:29PM

14
#1836 - Hogo / @HogoBlog

06/14/2020 at 05:04PM

14
#1837 - smlbrngr / @smlbrngr

06/15/2020 at 12:57PM

14
#1838 - Felix / @motorente

06/24/2020 at 01:21PM

14
#1839 - Zhuo Zhang / @i2huer

06/28/2020 at 04:15AM

14
#1840 - Justin Or / @just_in_awe

07/04/2020 at 04:48AM

14
#1841 - Brennan Barker / @BrennanJBarker

07/04/2020 at 03:58PM

14
#1842 - L Z / @unidevel

07/05/2020 at 03:21AM

15
#1843 - CJ Avilla / @wizemanip

11/12/2014 at 04:49AM

15
#1844 - Nadav Spiegelman / @nadavspi

11/12/2014 at 05:01AM

15
#1845 - Heath Patterson / @HeathPatterson

11/12/2014 at 11:53AM

15
#1846 - Lieven Keersmaekers / @LievenKeersmaek

11/12/2014 at 07:35PM

15
#1847 - Thomas Geßler / @th_gessler

11/15/2014 at 10:57AM

15
#1848 - Michi Loro / @michiloro

11/20/2014 at 10:11AM

15
#1849 - Adrien Canuel / @AdrienCanuel

11/20/2014 at 02:07PM

15
#1850 - David Foucher / @tyjak

11/26/2014 at 12:14AM

15
#1851 - Erik Buček / @_EnterNameHere_

11/26/2014 at 01:23PM

15
#1852 - Alex Serebryakov / @Doc_Livesey

12/01/2014 at 10:06AM

15
#1853 - Janko Marohnić / @jankomarohnic

12/06/2014 at 08:58AM

15
#1854 - Pierre Houssin / @PierreHoussin

12/16/2014 at 08:10PM

15
#1855 - Matthew Sterritt / @GodJinrai

12/19/2014 at 06:26PM

15
#1856 - Michael Foley / @m1foley

12/29/2014 at 12:59AM

15
#1857 - Hiroshi Kato / @kato1628

01/10/2015 at 11:40AM

15
#1858 - Steve / @Logogenics

01/16/2015 at 12:47AM

15
#1859 - KB / @CommonKb

01/17/2015 at 01:51AM

15
#1860 - Ilari Mäkelä / @ilarimkel

01/19/2015 at 12:39PM