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):
15
#1921 - Steve / @Logogenics

01/16/2015 at 12:47AM

15
#1922 - KB / @CommonKb

01/17/2015 at 01:51AM

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

01/19/2015 at 12:39PM

15
#1924 - Jonáš Šerých / @serycjon

01/29/2015 at 04:33PM

15
#1925 - 裏連 / @uraren_bot

02/02/2015 at 07:02AM

15
#1926 - yusukesasaki / @yysaki

02/04/2015 at 03:18PM

15
#1927 - Ben Door U. / @bendooru

02/13/2015 at 09:16PM

15
#1928 - Paul Binns / @mogularpb

02/16/2015 at 11:25AM

15
#1929 - Dmitry Zudochkin / @zudochkin

02/17/2015 at 07:49PM

15
#1930 - Thiago Prado / @5k1pp3r

02/20/2015 at 05:03PM

15
#1931 - Pedro Araújo / @phcrva

02/20/2015 at 10:21PM

15
#1932 - Elizabeth / @sprinkles418

02/24/2015 at 08:08PM

15
#1933 - Công Nguyễn / @ntcong

02/25/2015 at 04:45AM

15
#1934 - louis sherren / @louis_sherren

02/27/2015 at 08:37AM

15
#1935 - GfS0kVhh0GuQQv5Q / @GfS0k

03/02/2015 at 10:39PM

15
#1936 - vimgolf / @neovimp

03/04/2015 at 05:06PM

15
#1937 - Kenny / @zumalifeguard

03/07/2015 at 06:36AM

15
#1938 - 0x255 / @0x255

03/10/2015 at 02:19PM

15
#1939 - Deepak Surti / @dmsurti

03/13/2015 at 01:07PM

15
#1940 - chrisheithoff / @chrisheithoff

03/14/2015 at 03:35PM

15
#1941 - Алексей Матюшкин / @mudasobwa

03/15/2015 at 08:32AM

15
#1942 - Anoop Kumar / @anooplive

03/16/2015 at 12:43AM

15
#1943 - Travis Barber / @tbarber350

03/23/2015 at 12:40AM

15
#1944 - Ryan Kuczka / @ryan_kuczka

03/23/2015 at 09:25PM

15
#1945 - Pulkit Data / @DataPulkit

03/30/2015 at 03:47PM

15
#1946 - ushumpei / @ushumpei_

04/05/2015 at 09:34AM

15
#1947 - kykyshka / @kykyshka91

04/13/2015 at 08:57PM

15
#1948 - simonced / @simonced

04/16/2015 at 03:53AM

15
#1949 - Pimzero / @pimzer0

04/18/2015 at 12:10AM

15
#1950 - horace / @hor1ace

04/23/2015 at 02:15PM