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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
15
#1501 - merphant / @merphant

10/27/2015 at 08:53AM

15
#1502 - Ben Harris / @bharrisau

11/01/2015 at 08:03AM

15
#1503 - Julien Grenier / @juliengrenier

11/02/2015 at 02:50PM

15
#1504 - Get Sharp / @get_Sh4rp

11/15/2015 at 05:26AM

15
#1505 - emblox / @emblox

11/19/2015 at 10:27PM

15
#1506 - Ryuichiro / @ryuichiro44

11/19/2015 at 10:36PM

15
#1507 - Aaron Mininger / @AMininger

11/27/2015 at 02:10AM

15
#1508 - EatYourGreens / @VimTwo

11/27/2015 at 05:11PM

15
#1509 - Marty Boren / @beanmaximalist

11/28/2015 at 06:07AM

15
#1510 - Matías Lang / @sh4r3m4n

12/10/2015 at 07:53PM

15
#1511 - Paul D. Kang / @pauldakang

12/10/2015 at 09:18PM

15
#1512 - manfred knapp / @fred_pooshka

12/11/2015 at 09:19PM

15
#1513 - Charlie / @wookie_giant

12/20/2015 at 05:01PM

15
#1514 - Ethan Stewart / @EthanS279

12/23/2015 at 09:27PM

15
#1515 - Sebastian Nickel / @tumblingwhimsy

12/25/2015 at 12:41PM

15
#1516 - Mirko Grönroos / @hermo

01/13/2016 at 03:56PM

15
#1517 - Lindsay Swift / @_lindsai_

01/17/2016 at 07:50PM

15
#1518 - Ian Trophy / @prfrgg

01/30/2016 at 04:44PM

15
#1519 - GarrettPeterson / @GarrettPeterson

02/15/2016 at 09:25PM

15
#1520 - Drenn / @drenn9

02/17/2016 at 11:26PM

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

02/18/2016 at 08:14AM

15
#1522 - Niels Madan / @nielsmadan

02/18/2016 at 12:46PM

15
#1523 - James Burns / @James_Ian_Burns

02/18/2016 at 03:24PM

15
#1524 - antew / @antewcode

02/25/2016 at 08:00PM

15
#1525 - Robert Wooner / @RobertWooner

02/28/2016 at 11:46PM

15
#1526 - Piotr Madaliński / @MadalinskiPiotr

03/08/2016 at 04:26PM

15
#1527 - Jonathan Taylor / @Jonyonson

03/20/2016 at 01:26AM

15
#1528 - Jason Choi / @joyous_jason

03/29/2016 at 08:17AM

15
#1529 - glepha / @glepha_vim

03/31/2016 at 02:18AM

15
#1530 - Robber Toe / @robbertoe

04/01/2016 at 02:59AM