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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
15
#1291 - Hugh barrigan / @nagirrab

02/25/2014 at 10:08PM

15
#1292 - Jason Bruce / @jbrucenet

02/28/2014 at 06:58PM

15
#1293 - Philiphone / @Philiphone

03/01/2014 at 10:03AM

15
#1294 - Roman Reithmayer / @sharenz0

03/03/2014 at 08:35AM

15
#1295 - Erim Secla / @Alcesmire

03/04/2014 at 04:49PM

15
#1296 - Hannes Remahl / @hannesr

03/13/2014 at 02:04AM

15
#1297 - shinohara / @asua

03/18/2014 at 01:53PM

15
#1298 - G / @drdevil44

03/22/2014 at 07:34PM

15
#1299 - Brandor / @Brandombot

03/25/2014 at 06:58AM

15
#1300 - Patrick Oscity / @der_padde

03/26/2014 at 12:26PM

15
#1301 - John Stallings / @jstallings

03/27/2014 at 03:41PM

15
#1302 - Jeff / @just_geophree

03/29/2014 at 01:54AM

15
#1303 - Nabi Studios / @Toribash

03/29/2014 at 02:27PM

15
#1304 - Amit Verma / @amitv12

03/29/2014 at 08:28PM

15
#1305 - David Goonja / @davidgoonja

04/02/2014 at 07:57AM

15
#1306 - Bob Zingerman / @BobZingerman

04/08/2014 at 03:28AM

15
#1307 - ZorgroZ / @ZorgroZ

04/10/2014 at 09:44PM

15
#1308 - zhuochun / @zhuochun

04/13/2014 at 03:46AM

15
#1309 - Jon Raphaelson / @lygaret

04/16/2014 at 03:08PM

15
#1310 - Shefaet / @shefaet

04/18/2014 at 11:56AM

15
#1311 - george.li / @goblin_george

04/19/2014 at 01:04PM

15
#1312 - Chris Trombley / @ctrombley

04/23/2014 at 10:30PM

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

04/25/2014 at 03:43AM

15
#1314 - akira / @_A_Akira

04/28/2014 at 05:05AM

15
#1315 - Olivier Gayot / @duskCoder

05/01/2014 at 04:26PM

15
#1316 - Łukasz Makuch / @zopsesen

05/03/2014 at 04:04PM

15
#1317 - Maarten Kruithof / @mckruithuijb

05/04/2014 at 01:52PM

15
#1318 - Gregor MacDougall / @GrMacDougall

05/05/2014 at 10:56PM

15
#1319 - Joey Liu / @JoeytallLiu

05/06/2014 at 06:20AM

15
#1320 - lastsseldon / @lastsseldon

05/09/2014 at 08:45PM