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
#2071 - shock_one / @shock_one

02/20/2014 at 04:30PM

16
#2072 - Jean-PhilippeBurelle / @jpburelle

02/23/2014 at 05:19PM

16
#2073 - Matthew Draper / @_matthewd

02/26/2014 at 04:54PM

16
#2074 - Alexey Kornilov / @klexae

02/26/2014 at 05:06PM

16
#2075 - Peter J. Foti / @peterjfoti

02/27/2014 at 01:21AM

16
#2076 - Untruth / @NotSongLyrics

02/27/2014 at 01:38AM

16
#2077 - Lucius L. Hilley III / @unkmar

02/27/2014 at 07:16AM

16
#2078 - Syl / @SylvestreGallon

02/27/2014 at 10:36AM

16
#2079 - Angus McInnes / @eigenstuff

03/06/2014 at 11:48AM

16
#2080 - Brandon / @bjpowel2

03/06/2014 at 09:00PM

16
#2081 - Timothy Lin / @lzh9102

03/08/2014 at 02:37AM

16
#2082 - Matt Widmann / @mattwidmann

03/10/2014 at 02:26PM

16
#2083 - notpsilo / @notpsilo

03/12/2014 at 06:15PM

16
#2084 - RB / @powerage88

03/13/2014 at 12:27AM

16
#2085 - ineb / @ineb0

03/13/2014 at 07:24PM

16
#2086 - devper94 / @devper94

03/16/2014 at 08:33AM

16
#2087 - Benji Fisher / @benji17fisher

03/19/2014 at 12:49PM

16
#2088 - God / @iamgod

03/20/2014 at 11:00PM

16
#2089 - Jacob / @jayekub

03/22/2014 at 11:51PM

16
#2090 - Guy Rozen / @HolyEggplant

03/25/2014 at 01:41PM

16
#2091 - vansan / @VinceVansan

03/25/2014 at 03:07PM

16
#2092 - Aidan Brumsickle / @aidanbrumsickle

03/26/2014 at 04:10PM

16
#2093 - Michael Klitgaard / @EdgyScience

03/28/2014 at 09:25PM

16
#2094 - ryk / @rykarn

03/29/2014 at 01:02PM

16
#2095 - Nate R / @80vs90

04/08/2014 at 08:37PM

16
#2096 - entitled millennial / @PythonBro

04/09/2014 at 02:43AM

16
#2097 - Aleksander Gajewski / @adgajewski

04/20/2014 at 09:11AM

16
#2098 - Stefan Leszkiewicz / @stefanlz

04/21/2014 at 03:12AM

16
#2099 - Rob Moody / @devseer

04/22/2014 at 10:17PM

16
#2100 - Andreas Hagesjö / @Ankhagge

04/25/2014 at 12:25AM