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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2251 - Seth Yoder / @McMire315

06/23/2015 at 05:12PM

16
#2252 - Test Account / @TestAcct7777

06/26/2015 at 11:44AM

16
#2253 - Cormac Relf / @cormacrelf

06/29/2015 at 03:57AM

16
#2254 - Jan Wirth / @FranzSkuffka

06/29/2015 at 09:37AM

16
#2255 - anonymous / @_nonymous

07/24/2015 at 12:32AM

16
#2256 - luchs / @lluchs

07/24/2015 at 01:31PM

16
#2257 - Jason Schulz / @uxcn_

07/25/2015 at 08:12AM

16
#2258 - McKay Ward / @mckayward

07/26/2015 at 01:33AM

16
#2259 - Matthew / @magee210

07/28/2015 at 12:24AM

16
#2260 - Toni Dezman / @CesarekToni

07/28/2015 at 06:42PM

16
#2261 - Jer Wilson / @superjercom

07/28/2015 at 09:32PM

16
#2262 - Alexander Buntakov / @Buntakov

07/30/2015 at 10:23AM

16
#2263 - randomizer user / @alsdkfhjlkadfha

08/04/2015 at 08:01AM

16
#2264 - Zak Greant / @zakgreant

08/07/2015 at 07:19PM

16
#2265 - Dave Neary / @nearyd

08/13/2015 at 01:23PM

16
#2266 - Afonso Bordado / @afonsobordado

08/20/2015 at 10:50AM

16
#2267 - alex / @alexAngle8

08/21/2015 at 10:02PM

16
#2268 - Ryan / @eatsleephack_

08/27/2015 at 06:47PM

16
#2269 - Sergey Semushin / @Predelnik

08/28/2015 at 05:36AM

16
#2270 - Léo S / @LeoSauvaget

08/28/2015 at 06:59PM

16
#2271 - Gabriel Florit / @gabrielflorit

09/05/2015 at 07:57PM

16
#2272 - Igor Martynov / @snailbaron

09/07/2015 at 04:44PM

16
#2273 - dd / @dd22147119

09/14/2015 at 04:24PM

16
#2274 - Markel Tuzinskiy / @markel_t

09/19/2015 at 01:07PM

16
#2275 - Pete Sevander / @Sevanteri

09/19/2015 at 06:54PM

16
#2276 - Maximilian / @ComexDiver

09/22/2015 at 11:01AM

16
#2277 - Kiet Nguyen / @kietnguyen86

09/29/2015 at 02:18PM

16
#2278 - chris liang / @serhc

10/03/2015 at 02:23AM

16
#2279 - Formally Dallin / @FormallyDallin

10/12/2015 at 06:43PM

16
#2280 - Mark Brody / @_markbrody

10/14/2015 at 09:08PM