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

3970 active golfers, 12969 entries

Leaderboard (lowest score wins):
16
#1891 - Anh Do / @quanganhdo

06/04/2013 at 05:09AM

16
#1892 - Trevor Burn / @digitrev

06/05/2013 at 06:45PM

16
#1893 - Piotr Śniegowski / @PiotrSniegowski

06/05/2013 at 10:14PM

16
#1894 - GimVolfer VimGolfer / @GimGol

06/06/2013 at 07:57PM

16
#1895 - jeepee / @jeepee_test

06/06/2013 at 08:46PM

16
#1896 - Matthew James / @Matthew55493344

06/08/2013 at 03:44PM

16
#1897 - Andy Balaam / @andybalaam

06/12/2013 at 04:25PM

16
#1898 - Sean Todd / @descentintomael

06/16/2013 at 06:20AM

16
#1899 - Stefan Antoni / @Suchkultur

06/18/2013 at 05:52PM

16
#1900 - Nick Andryshak / @nandryshak

06/20/2013 at 05:38PM

16
#1901 - REPLicated / @re_plicated

06/24/2013 at 10:25PM

16
#1902 - Eric Dilmore / @geppettodivacin

06/26/2013 at 04:01AM

16
#1903 - Nick Harding / @nick_harding

06/26/2013 at 05:15PM

16
#1904 - mooqual / @mooqual

06/30/2013 at 03:50AM

16
#1905 - Paddy Steed / @paddysteed

07/01/2013 at 10:26PM

16
#1906 - TrentonZero / @TrentonZero

07/04/2013 at 08:23PM

16
#1907 - Alan Shen / @sunzenshen

07/05/2013 at 07:18AM

16
#1908 - Michael Kummer / @randompast

07/06/2013 at 05:11PM

16
#1909 - Alan Fung-Schwarz / @ajcfs

07/12/2013 at 03:10PM

16
#1910 - fSchl / @FelixSchlitter

07/16/2013 at 12:25AM

16
#1911 - Heath Patterson / @HeathPatterson

07/17/2013 at 12:23PM

16
#1912 - Maksim S. / @waynesayonara

07/17/2013 at 05:09PM

16
#1913 - Rainer Koirikivi / @rkoiriki

07/18/2013 at 10:21AM

16
#1914 - Dr Rev J. “I am not a bot!” Kirchartz, KSC, KHS / @JKirchartz

07/20/2013 at 03:49AM

16
#1915 - Joel Taylor / @joelteon_

07/23/2013 at 01:52AM

16
#1916 - Tullio Facchinetti / @toolleeo

07/25/2013 at 08:29PM

16
#1917 - Brian Besmanoff / @BrianBesmanoff

07/29/2013 at 10:50PM

16
#1918 - cameron / @cameronaustgen

07/30/2013 at 10:31PM

16
#1919 - Nikita Mikhaylin / @NikMikh

07/31/2013 at 03:06AM

16
#1920 - memotype / @memotype

07/31/2013 at 09:00PM