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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
16
#2431 - Plósz Péter / @ploszpe

03/23/2018 at 09:56PM

16
#2432 - matthew brett / @matthewbrett

03/25/2018 at 07:48AM

16
#2433 - Marcos Almeida / @almeidamarcos_

04/08/2018 at 10:32PM

16
#2434 - Kate McKenzie / @KateMcK45252522

04/16/2018 at 02:45AM

16
#2435 - jet / @jameslintaylor

04/20/2018 at 03:30AM

16
#2436 - vimgolfdummy / @vimgolfdummy

05/05/2018 at 04:39PM

16
#2437 - bob / @vg41

05/05/2018 at 09:54PM

16
#2438 - Luke Lee / @luke0201

05/06/2018 at 04:04AM

16
#2439 - frank p / @icedearth55

05/09/2018 at 03:49PM

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

05/11/2018 at 03:01PM

16
#2441 - Niels Pedersen / @NielsLearnsPy

05/12/2018 at 07:16AM

16
#2442 - Nathanael / @ngsilverman

05/13/2018 at 10:45PM

16
#2443 - Vincent COMBEY / @VincentCombey

05/23/2018 at 08:51PM

16
#2444 - William I. Olojede / @williamolojede

05/27/2018 at 11:11AM

16
#2445 - Leila Loezer / @leilaloezer

06/02/2018 at 05:50PM

16
#2446 - Dylan Nelson / @dlnnlsn

06/08/2018 at 02:46AM

16
#2447 - deeplow / @deeplow1337

06/15/2018 at 09:14PM

16
#2448 - ikigai / @ikigai27357012

06/21/2018 at 08:19AM

16
#2449 - Norbert / @mullno

06/21/2018 at 07:45PM

16
#2450 - Daniel Allen Deutsch / @cmmn_nighthawk

06/22/2018 at 01:43AM

16
#2451 - rg thomas / @rgt47

06/22/2018 at 10:44PM

16
#2452 - Puj / @MrPuj

07/08/2018 at 07:26AM

16
#2453 - 최종원 / @lastone9182

07/15/2018 at 01:38PM

16
#2454 - Sérgio Mucciaccia / @SMucciaccia

07/17/2018 at 07:36PM

16
#2455 - Ben Weinstein-Raun / @benwr

07/19/2018 at 04:55AM

16
#2456 - Bobby Tables / @BobbyTables12

07/19/2018 at 06:18PM

16
#2457 - Christoph Heim / @iLords

07/28/2018 at 12:30PM

16
#2458 - Hunter Tidwell / @hunter2tidwell

08/01/2018 at 04:35AM

16
#2459 - Weston Neal / @wtneal

09/04/2018 at 04:45PM

16
#2460 - Igor / @idisaples

09/12/2018 at 04:26PM