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

3919 active golfers, 14960 entries

Leaderboard (lowest score wins):
17
#2641 - Antti A / @anttia

07/22/2015 at 11:34AM

17
#2642 - fantome / @fantome84

07/23/2015 at 12:39PM

17
#2643 - gyermolenko / @gyermolenko_

08/09/2015 at 08:51PM

17
#2644 - Will Munn / @lfsaw

08/13/2015 at 09:22PM

17
#2645 - Gafton Paul / @Paul9222

08/19/2015 at 01:06AM

17
#2646 - Dawid retkiewicz / @dawret

08/21/2015 at 10:31AM

17
#2647 - Sergey Semushin / @Predelnik

08/24/2015 at 06:50AM

17
#2648 - Lost Web Designs / @lostwebdesign

09/06/2015 at 06:11PM

17
#2649 - Yann Vanhalewyn / @yannvanhalewyn

09/12/2015 at 05:36AM

17
#2650 - Alexander Pankratov / @nonuBKy

09/15/2015 at 03:26PM

17
#2651 - Emil Styrke / @EStyrke

09/18/2015 at 01:12PM

17
#2652 - Karl August / @ClockworkCoder

09/23/2015 at 12:46PM

17
#2653 - Davy Jones / @OpsDavy

10/03/2015 at 11:05PM

17
#2654 - asasdas / @h904670

10/13/2015 at 05:51AM

17
#2655 - Otto / @OttoRottier

10/19/2015 at 08:05PM

17
#2656 - Campbell Davis / @Campbell_Dav

10/24/2015 at 11:33AM

17
#2657 - Shobhit Gupta / @shobhitg

10/25/2015 at 12:30PM

17
#2658 - Ершов Иван / @ivanershov51

10/30/2015 at 10:07PM

17
#2659 - John Phelan / @jackphel

11/06/2015 at 08:25AM

17
#2660 - Oinksoft / @oinksoft

11/07/2015 at 01:43AM

17
#2661 - Silvio Dante / @FlightWhite77

11/23/2015 at 09:06PM

17
#2662 - Daniil Nguen / @DNguen

11/24/2015 at 07:58PM

17
#2663 - Stefan Larsson / @Objektiv

11/25/2015 at 04:35PM

17
#2664 - かりうむ / @ka1l

12/03/2015 at 02:28AM

17
#2665 - Mendel Simon / @agentms11

12/07/2015 at 09:34PM

17
#2666 - Martin Lehmann / @Theneva

12/08/2015 at 10:59PM

17
#2667 - Christopher Wells / @ExcaliburZero_Z

12/19/2015 at 04:44AM

17
#2668 - Morgan / @Mszy_

01/18/2016 at 10:08PM

17
#2669 - warren crowell / @warrenmcrowell

01/30/2016 at 01:18AM

17
#2670 - stb tra / @stbtra

02/04/2016 at 09:30AM