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
#1891 - Spencer Rogers / @spencer1248

05/25/2013 at 01:59AM

16
#1892 - Vinicius Souza / @vsouzas

05/30/2013 at 06:04PM

16
#1893 - Cam Peterson / @Cam_Peterson

05/31/2013 at 06:27PM

16
#1894 - Bryan Hoyle / @BryanHoyle

06/03/2013 at 01:56PM

16
#1895 - Anh Do / @quanganhdo

06/04/2013 at 05:09AM

16
#1896 - Trevor Burn / @digitrev

06/05/2013 at 06:45PM

16
#1897 - Piotr Śniegowski / @PiotrSniegowski

06/05/2013 at 10:14PM

16
#1898 - GimVolfer VimGolfer / @GimGol

06/06/2013 at 07:57PM

16
#1899 - jeepee / @jeepee_test

06/06/2013 at 08:46PM

16
#1900 - Matthew James / @Matthew55493344

06/08/2013 at 03:44PM

16
#1901 - Andy Balaam / @andybalaam

06/12/2013 at 04:25PM

16
#1902 - Sean Todd / @descentintomael

06/16/2013 at 06:20AM

16
#1903 - Stefan Antoni / @Suchkultur

06/18/2013 at 05:52PM

16
#1904 - Nick Andryshak / @nandryshak

06/20/2013 at 05:38PM

16
#1905 - REPLicated / @re_plicated

06/24/2013 at 10:25PM

16
#1906 - Eric Dilmore / @geppettodivacin

06/26/2013 at 04:01AM

16
#1907 - Nick Harding / @nick_harding

06/26/2013 at 05:15PM

16
#1908 - mooqual / @mooqual

06/30/2013 at 03:50AM

16
#1909 - Paddy Steed / @paddysteed

07/01/2013 at 10:26PM

16
#1910 - TrentonZero / @TrentonZero

07/04/2013 at 08:23PM

16
#1911 - Alan Shen / @sunzenshen

07/05/2013 at 07:18AM

16
#1912 - Michael Kummer / @randompast

07/06/2013 at 05:11PM

16
#1913 - Alan Fung-Schwarz / @ajcfs

07/12/2013 at 03:10PM

16
#1914 - fSchl / @FelixSchlitter

07/16/2013 at 12:25AM

16
#1915 - Heath Patterson / @HeathPatterson

07/17/2013 at 12:23PM

16
#1916 - Maksim S. / @waynesayonara

07/17/2013 at 05:09PM

16
#1917 - Rainer Koirikivi / @rkoiriki

07/18/2013 at 10:21AM

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

07/20/2013 at 03:49AM

16
#1919 - Joel Taylor / @joelteon_

07/23/2013 at 01:52AM

16
#1920 - Tullio Facchinetti / @toolleeo

07/25/2013 at 08:29PM