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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2431 - Kate McKenzie / @KateMcK45252522

04/16/2018 at 02:45AM

16
#2432 - jet / @jameslintaylor

04/20/2018 at 03:30AM

16
#2433 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 04:39PM

16
#2434 - bob / @vg41

05/05/2018 at 09:54PM

16
#2435 - Luke Lee / @luke0201

05/06/2018 at 04:04AM

16
#2436 - frank p / @icedearth55

05/09/2018 at 03:49PM

16
#2437 - Just...That / @I_am_JustThat

05/11/2018 at 03:01PM

16
#2438 - Niels Pedersen / @NielsLearnsPy

05/12/2018 at 07:16AM

16
#2439 - Nathanael / @ngsilverman

05/13/2018 at 10:45PM

16
#2440 - Vincent COMBEY / @VincentCombey

05/23/2018 at 08:51PM

16
#2441 - William I. Olojede / @williamolojede

05/27/2018 at 11:11AM

16
#2442 - Leila Loezer / @leilaloezer

06/02/2018 at 05:50PM

16
#2443 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:46AM

16
#2444 - deeplow / @deeplow1337

06/15/2018 at 09:14PM

16
#2445 - ikigai / @ikigai27357012

06/21/2018 at 08:19AM

16
#2446 - Norbert / @mullno

06/21/2018 at 07:45PM

16
#2447 - Daniel Allen Deutsch / @cmmn_nighthawk

06/22/2018 at 01:43AM

16
#2448 - rg thomas / @rgt47

06/22/2018 at 10:44PM

16
#2449 - Puj / @MrPuj

07/08/2018 at 07:26AM

16
#2450 - 최종원 / @lastone9182

07/15/2018 at 01:38PM

16
#2451 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 07:36PM

16
#2452 - Ben Weinstein-Raun / @benwr

07/19/2018 at 04:55AM

16
#2453 - Bobby Tables / @BobbyTables12

07/19/2018 at 06:18PM

16
#2454 - Christoph Heim / @iLords

07/28/2018 at 12:30PM

16
#2455 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 04:35AM

16
#2456 - Weston Neal / @wtneal

09/04/2018 at 04:45PM

16
#2457 - Igor / @idisaples

09/12/2018 at 04:26PM

16
#2458 - Brendan B Amdocs / @AmdocsB

09/24/2018 at 01:55PM

16
#2459 - Andy Tockman / @atckmn

10/06/2018 at 09:37PM

16
#2460 - Nir Givon / @nir_givon

11/11/2018 at 12:42PM