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):
15
#1501 - Adam Cook / @apcook

10/09/2015 at 04:05AM

15
#1502 - Artur Taranchiev / @ewokru

10/12/2015 at 08:39PM

15
#1503 - Jonas Nockert / @lemonad

10/17/2015 at 02:13PM

15
#1504 - Artem Medeusheyev / @ArtemMedeu

10/20/2015 at 08:38AM

15
#1505 - merphant / @merphant

10/27/2015 at 08:53AM

15
#1506 - Ben Harris / @bharrisau

11/01/2015 at 08:03AM

15
#1507 - Julien Grenier / @juliengrenier

11/02/2015 at 02:50PM

15
#1508 - Get Sharp / @get_Sh4rp

11/15/2015 at 05:26AM

15
#1509 - emblox / @emblox

11/19/2015 at 10:27PM

15
#1510 - Ryuichiro / @ryuichiro44

11/19/2015 at 10:36PM

15
#1511 - Aaron Mininger / @AMininger

11/27/2015 at 02:10AM

15
#1512 - EatYourGreens / @VimTwo

11/27/2015 at 05:11PM

15
#1513 - Marty Boren / @beanmaximalist

11/28/2015 at 06:07AM

15
#1514 - Matías Lang / @sh4r3m4n

12/10/2015 at 07:53PM

15
#1515 - Paul D. Kang / @pauldakang

12/10/2015 at 09:18PM

15
#1516 - manfred knapp / @fred_pooshka

12/11/2015 at 09:19PM

15
#1517 - Charlie / @wookie_giant

12/20/2015 at 05:01PM

15
#1518 - Ethan Stewart / @EthanS279

12/23/2015 at 09:27PM

15
#1519 - Sebastian Nickel / @tumblingwhimsy

12/25/2015 at 12:41PM

15
#1520 - Mirko Grönroos / @hermo

01/13/2016 at 03:56PM

15
#1521 - Lindsay Swift / @_lindsai_

01/17/2016 at 07:50PM

15
#1522 - Ian Trophy / @prfrgg

01/30/2016 at 04:44PM

15
#1523 - GarrettPeterson / @GarrettPeterson

02/15/2016 at 09:25PM

15
#1524 - Drenn / @drenn9

02/17/2016 at 11:26PM

15
#1525 - Rubén Chavarría T. / @rchavarriat

02/18/2016 at 08:14AM

15
#1526 - Niels Madan / @nielsmadan

02/18/2016 at 12:46PM

15
#1527 - James Burns / @James_Ian_Burns

02/18/2016 at 03:24PM

15
#1528 - antew / @antewcode

02/25/2016 at 08:00PM

15
#1529 - Robert Wooner / @RobertWooner

02/28/2016 at 11:46PM

15
#1530 - Piotr Madaliński / @MadalinskiPiotr

03/08/2016 at 04:26PM