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 5192f96ad8df110002000002

Words in parens

We should all ace this, right?

Start file
one two
three
End file
(one) (two)
(three)

View Diff

1,2c1,2
< one two
< three
---
> (one) (two)
> (three)

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 3976 remaining solutions by signing in and submitting your own entry
#3977 velina v veleva / @vveleva - Score: 155 - 04/23/15 @ 16:55
::%s/\(\a*\)/(&)/g<CR>ZZ<C-A><BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><BS><CR><CR>%s/\(\w*\)/(\1)/g<CR>ZZ/<Esc><Esc>u<Esc>/<BS>:%s/\(\w*\)/(\1)/g<CR>ZZ<CR>:%s/\(\w*\)/(\1)/g<CR>ZZ<Left><Left><Right><Right><Right><BS><BS><BS><BS><BS><BS><CR><Esc>:w<CR><Esc>:wq<CR>

0 comments


Created by: @udioica

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
16
#1921 - Brian Besmanoff / @BrianBesmanoff

07/29/2013 at 10:50PM

16
#1922 - cameron / @cameronaustgen

07/30/2013 at 10:31PM

16
#1923 - Nikita Mikhaylin / @NikMikh

07/31/2013 at 03:06AM

16
#1924 - memotype / @memotype

07/31/2013 at 09:00PM

16
#1925 - Christophe de Vienne / @cmdevienne

08/01/2013 at 08:21AM

16
#1926 - Slycelote / @Slycelote

08/01/2013 at 07:29PM

16
#1927 - David Baynard / @dbaynard

08/04/2013 at 04:43AM

16
#1928 - Pasha Muravyev / @pashamur

08/04/2013 at 09:20AM

16
#1929 - Rishi Chopra / @chopra

08/04/2013 at 05:13PM

16
#1930 - James Zaghini / @jameszaghini

08/06/2013 at 12:43PM

16
#1931 - Kudryavtsev Alexandr / @kudryav_a

08/08/2013 at 09:06AM

16
#1932 - JP Lew / @jp_lew

08/11/2013 at 03:27PM

16
#1933 - Bart of Denver / @bartofdenver

08/12/2013 at 03:58AM

16
#1934 - Bartlomiej P / @bartlomiej_p

08/12/2013 at 09:29PM

16
#1935 - Seaborn Lee / @SeabornLi

08/13/2013 at 01:54PM

16
#1936 - David Pathakjee / @DavidPathakjee

08/14/2013 at 03:23AM

16
#1937 - Andrew / @vimGolfAndrew

08/14/2013 at 08:57PM

16
#1938 - Michael Coles / @gen_ale_drinker

08/19/2013 at 01:14PM

16
#1939 - Risabellah / @Risabellah

08/19/2013 at 10:39PM

16
#1940 - Fontaine Kévin / @DotSlash974

08/24/2013 at 10:03AM

16
#1941 - Jerimiah Von Excel32 / @JExcel32

08/24/2013 at 03:14PM

16
#1942 - Sofia Balicka / @so_phifi

08/25/2013 at 05:12PM

16
#1943 - Inuka Jayasekera / @a_new_car

08/27/2013 at 08:40PM

16
#1944 - Rikin Patel / @rikin_patel

08/31/2013 at 10:02AM

16
#1945 - Bunwut Tson / @NbTson

08/31/2013 at 03:32PM

16
#1946 - Colin Sheaff / @selfsimilar

09/03/2013 at 01:55AM

16
#1947 - Elias Dorneles / @eliasdorneles

09/03/2013 at 02:03AM

16
#1948 - James / @Dronak

09/07/2013 at 04:10AM

16
#1949 - Luke Yeo / @henghonghung

09/07/2013 at 04:52PM

16
#1950 - John Doe / @mjjabillo

09/11/2013 at 02:21PM