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

3979 active golfers, 13005 entries

Leaderboard (lowest score wins):
16
#1951 - John Doe / @mjjabillo

09/11/2013 at 02:21PM

16
#1952 - Andrew Crites / @ExplosionPills

09/11/2013 at 06:31PM

16
#1953 - Alykhan Kanji / @alykhank

09/13/2013 at 06:09PM

16
#1954 - Ben Buckley / @_benb

09/13/2013 at 08:38PM

16
#1955 - atemeresclencare / @kfzhyzdj

09/13/2013 at 10:58PM

16
#1956 - Oliver Christ / @0liverChrist

09/15/2013 at 08:45PM

16
#1957 - Bjorn / @bjorn_248

09/16/2013 at 07:20PM

16
#1958 - Carlos / @lemonpan

09/19/2013 at 02:14AM

16
#1959 - isayoldchap / @isayoldchap

09/20/2013 at 12:16AM

16
#1960 - Lee Jackson / @morphemass

09/20/2013 at 10:52AM

16
#1961 - Steven Wiggins / @StevenWiggins

09/25/2013 at 07:14PM

16
#1962 - Ryan / @TPHRyan

09/26/2013 at 05:01AM

16
#1963 - Joe Kramer / @cozmorado

09/26/2013 at 05:52AM

16
#1964 - Fedor Stepanov / @yasorrat

09/26/2013 at 10:38AM

16
#1965 - Steven Weller / @suweller

09/26/2013 at 02:52PM

16
#1966 - wabas / @_wjib_

09/27/2013 at 08:04AM

16
#1967 - ☣Rob Mason☠ / @necr0mancer

09/27/2013 at 01:10PM

16
#1968 - Killian Huyghe / @KillianHUYGHE

09/29/2013 at 12:21AM

16
#1969 - Flugsio / @flugsio

09/29/2013 at 07:11AM

16
#1970 - gmm2 / @gmm211

10/01/2013 at 02:23PM

16
#1971 - Dan Oneata / @DanOneata

10/01/2013 at 09:49PM

16
#1972 - NuM / @NuM314

10/02/2013 at 12:30AM

16
#1973 - あなっちゃん / @anairetta

10/02/2013 at 01:34PM

16
#1974 - Adam McLain / @adammclain

10/03/2013 at 04:47AM

16
#1975 - Thameera Senanayaka / @thameera

10/04/2013 at 04:13AM

16
#1976 - Thorsten Ball / @thorstenball

10/07/2013 at 04:49AM

16
#1977 - Franz Huber / @bgmictf

10/11/2013 at 12:28PM

16
#1978 - Joakim / @golfjoakim

10/12/2013 at 06:49AM

16
#1979 - Dimiter Petrov / @crackofdusk

10/12/2013 at 05:10PM

16
#1980 - Tyler / @tylerbindon

10/13/2013 at 05:42AM