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

3323 active golfers, 10641 entries

Leaderboard (lowest score wins):
28
#3241 - Jonah Marts / @JonahMarts

06/22/2016 at 03:43AM

28
#3242 - Brandon Hops / @BrandonHops

09/29/2018 at 05:38PM

28
#3243 - Neil Johari / @neiljohari

12/24/2018 at 08:07PM

29
#3244 - Michael Moussa / @michaelmoussa

10/24/2013 at 11:51PM

29
#3245 - Søren Mikkelsen / @aamikkelsen

11/19/2013 at 07:53AM

29
#3246 - Kevin Emmett / @kjemmett

12/20/2013 at 05:24PM

29
#3247 - Ellis / @AltF4ToWin

02/01/2014 at 02:20PM

29
#3248 - Kristopher Kahn / @flumm0xed

07/19/2014 at 02:37PM

29
#3249 - Akshay Aurora / @akshayaurora

09/16/2014 at 07:31AM

29
#3250 - Juampy NR / @juampynr

10/22/2014 at 08:25AM

29
#3251 - Paul Jones / @thepauljones

06/18/2018 at 01:00PM

30
#3252 - mwcz / @mwcz

10/30/2013 at 07:38PM

30
#3253 - Mohamad Ayyash / @mkayyash

03/03/2014 at 08:40PM

30
#3254 - Peter / @HomePiece

04/24/2014 at 02:57PM

30
#3255 - Shota Bakuradze / @headshota1989

12/14/2015 at 02:17PM

30
#3256 - Vojtěch Pejša / @7Vojta7

01/25/2017 at 03:01PM

30
#3257 - Barespamtak / @barespamtak

09/06/2017 at 08:16AM

30
#3258 - dorpo / @dorpo2

11/01/2018 at 05:33PM

31
#3259 - Hiroshi Funai / @hfunai

09/23/2013 at 02:07AM

31
#3260 - Anton Yakimov / @kekc_tosha

10/01/2013 at 12:03AM

31
#3261 - fsaintjacques / @fsaintjacques

02/24/2014 at 12:57AM

31
#3262 - Xginn / @xginn8

03/27/2014 at 02:18AM

31
#3263 - Domon / @Domon

08/06/2014 at 07:24AM

31
#3264 - Zidni Mubarock / @barock19

12/05/2014 at 06:37AM

31
#3265 - LSMTD / @LSMTD

12/09/2014 at 03:45AM

31
#3266 - Nathan Azaria / @nathanajah

12/10/2015 at 10:40AM

31
#3267 - sdf / @gfafsdgs

11/21/2017 at 03:17AM

31
#3268 - Anton Permenev / @a_permenev

11/17/2018 at 03:11PM

32
#3269 - WoljaIlpapa / @WoljaIlpapa

12/19/2013 at 11:42AM

32
#3270 - Jikku Jose / @JikkuJose

04/20/2014 at 03:31AM