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

3991 active golfers, 13053 entries

Leaderboard (lowest score wins):
15
#1351 - John Stallings / @jstallings

03/27/2014 at 03:41PM

15
#1352 - Jeff / @just_geophree

03/29/2014 at 01:54AM

15
#1353 - Nabi Studios / @Toribash

03/29/2014 at 02:27PM

15
#1354 - Amit Verma / @amitv12

03/29/2014 at 08:28PM

15
#1355 - David Goonja / @davidgoonja

04/02/2014 at 07:57AM

15
#1356 - Bob Zingerman / @BobZingerman

04/08/2014 at 03:28AM

15
#1357 - ZorgroZ / @ZorgroZ

04/10/2014 at 09:44PM

15
#1358 - zhuochun / @zhuochun

04/13/2014 at 03:46AM

15
#1359 - Jon Raphaelson / @lygaret

04/16/2014 at 03:08PM

15
#1360 - Shefaet / @shefaet

04/18/2014 at 11:56AM

15
#1361 - george.li / @goblin_george

04/19/2014 at 01:04PM

15
#1362 - Chris Trombley / @ctrombley

04/23/2014 at 10:30PM

15
#1363 - うさぎぱぱん / @mariamariapapan

04/25/2014 at 03:43AM

15
#1364 - akira / @_A_Akira

04/28/2014 at 05:05AM

15
#1365 - Olivier Gayot / @duskCoder

05/01/2014 at 04:26PM

15
#1366 - Łukasz Makuch / @zopsesen

05/03/2014 at 04:04PM

15
#1367 - Maarten Kruithof / @mckruithuijb

05/04/2014 at 01:52PM

15
#1368 - Gregor MacDougall / @GrMacDougall

05/05/2014 at 10:56PM

15
#1369 - Joey Liu / @JoeytallLiu

05/06/2014 at 06:20AM

15
#1370 - lastsseldon / @lastsseldon

05/09/2014 at 08:45PM

15
#1371 - wizardwerdna / @wizardwerdna

05/13/2014 at 11:35PM

15
#1372 - Zapata / @Incredible_JFP

05/21/2014 at 04:16PM

15
#1373 - CDRdude / @CDRdude

05/22/2014 at 06:09AM

15
#1374 - A / @Tower_1980

05/28/2014 at 11:07AM

15
#1375 - Nick Chambers / @fatnickc

05/30/2014 at 10:24PM

15
#1376 - Steffen Siering / @ursobln

06/02/2014 at 10:23PM

15
#1377 - Stephen / @StephenPek

06/06/2014 at 01:23PM

15
#1378 - Denis H. / @denis_h_

06/07/2014 at 11:43PM

15
#1379 - Brad DeShong / @braddeshong

06/11/2014 at 12:21AM

15
#1380 - kwa / @kwa129

06/14/2014 at 07:44AM