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
#1861 - Андриянов Роман / @angeldeath29

05/10/2020 at 03:53PM

14
#1862 - yyang / @yyang25803679

05/10/2020 at 07:03PM

14
#1863 - Bhagwan / @El_Bhagwan

05/11/2020 at 04:44AM

14
#1864 - Fnord Everywhere / @FnordE

05/11/2020 at 12:47PM

14
#1865 - Pawel Wenda / @pwlwnd

05/13/2020 at 10:17AM

14
#1866 - Manikkumar / @ManikkumarK

05/17/2020 at 01:22AM

14
#1867 - Lucas_Elsen / @DuVrangrGata18

05/17/2020 at 03:11PM

14
#1868 - Salman AlSaigal / @Salman_AlSaigal

05/20/2020 at 12:37AM

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

05/21/2020 at 12:51PM

14
#1870 - Mark Brown / @markbrowngt

05/26/2020 at 03:48AM

14
#1871 - RockerZZY / @rocker_zzy

05/27/2020 at 12:24PM

14
#1872 - Aidan Wilson / @aidanbwilson

05/28/2020 at 02:20PM

14
#1873 - Bob / @Bob37174065

06/01/2020 at 01:49PM

14
#1874 - LCY / @Chooneh

06/02/2020 at 06:27AM

14
#1875 - Ben Simmons / @Simmons_Ben

06/03/2020 at 03:58PM

14
#1876 - Jackie / @Jackie57887507

06/05/2020 at 03:22AM

14
#1877 - khedd / @sinan_khedd

06/14/2020 at 03:29PM

14
#1878 - Hogo / @HogoBlog

06/14/2020 at 05:04PM

14
#1879 - smlbrngr / @smlbrngr

06/15/2020 at 12:57PM

14
#1880 - Felix / @motorente

06/24/2020 at 01:21PM

14
#1881 - Zhuo Zhang / @i2huer

06/28/2020 at 04:15AM

14
#1882 - Justin Or / @just_in_awe

07/04/2020 at 04:48AM

14
#1883 - Brennan Barker / @BrennanJBarker

07/04/2020 at 03:58PM

14
#1884 - L Z / @unidevel

07/05/2020 at 03:21AM

14
#1885 - Dmitry Branitskiy / @b1azer

07/15/2020 at 01:44AM

14
#1886 - Tiago Nascimento / @tigum27

07/18/2020 at 04:28PM

14
#1887 - Sam Houston / @shouston33

07/29/2020 at 11:03PM

14
#1888 - Saurav Ray / @sauravpray

07/30/2020 at 03:16PM

14
#1889 - GenericHardwareGamer / @GnrikHrdwrGamer

08/05/2020 at 09:12AM

14
#1890 - Denis / @4NNTGudvin

08/05/2020 at 01:54PM