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

3761 active golfers, 14294 entries

Leaderboard (lowest score wins):
10
#901 - majestic sloth / @SamLlama

08/08/2019 at 04:39AM

10
#902 - Константин Иванов / @debugger00

08/08/2019 at 03:21PM

10
#903 - Chris Shorrock / @EbinFlow

08/14/2019 at 02:11PM

10
#904 - Adam Hartz / @awareofnow

08/18/2019 at 02:58AM

10
#905 - Malcolm Sharpe / @blueblimpms

08/18/2019 at 10:49PM

10
#906 - David Johnston / @nuts4nuts4nuts

08/24/2019 at 07:35AM

10
#907 - Daisuke Ito / @itodais

08/24/2019 at 04:31PM

10
#908 - blub / @agorilladriving

08/27/2019 at 02:44AM

10
#909 - amal / @cdsudama

08/27/2019 at 11:46PM

10
#910 - Andrew Blokzyl / @linuxKd

08/29/2019 at 09:08PM

10
#911 - Maxime Turquetil / @maturquetil

08/30/2019 at 10:03AM

10
#912 - dpetrovic_vimgolf / @DpetrovicV

08/30/2019 at 12:48PM

10
#913 - Iggy / @iggredible

09/04/2019 at 04:00AM

10
#914 - Baine Wedlock / @BaineWedlock

09/06/2019 at 11:04AM

10
#915 - Zach Ingbretsen / @ZIngbretsen

09/07/2019 at 03:49PM

10
#916 - Nathan Bendich / @neonb88

09/08/2019 at 02:52PM

10
#917 - Andac Safa / @SanDForcE94

09/11/2019 at 10:48PM

10
#918 - Cassandra / @kascein

09/17/2019 at 07:03AM

10
#919 - BHydden / @HyddenRiver

09/19/2019 at 03:18AM

10
#920 - huynhminhchu / @huynhminhchu

09/23/2019 at 03:07AM

10
#921 - Viktor Styrud / @ViktorStyrud

09/23/2019 at 12:36PM

10
#922 - Ollin Boer Bohan / @madebyollin

09/26/2019 at 01:40PM

10
#923 - Al1p / @al1pra

09/26/2019 at 08:37PM

10
#924 - vimgolfer / @vimgolfer7

09/28/2019 at 02:23PM

10
#925 - Alexander L. / @Lexol4s

09/28/2019 at 10:16PM

10
#926 - grimelich / @Grimelich

09/30/2019 at 07:28AM

10
#927 - Sebastien Baudray / @sbaudray

09/30/2019 at 08:24PM

10
#928 - Chen-Hung Wu / @utah12005

10/01/2019 at 12:44AM

10
#929 - Rui Xue / @ruirayxue

10/01/2019 at 03:14AM

10
#930 - Adrian Craciun / @adi_craciun

10/01/2019 at 08:41PM