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
#2491 - Rob Pilling / @bobrippling

08/09/2019 at 02:37PM

16
#2492 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:41PM

16
#2493 - BESSENG A IREH Guy / @guybesseng

08/18/2019 at 01:13AM

16
#2494 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:15PM

16
#2495 - Masi Valkonen / @masivalkonen

08/27/2019 at 10:29PM

16
#2496 - ゆに / @lededex

08/28/2019 at 04:33PM

16
#2497 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:53PM

16
#2498 - majuscule / @majuscule13

09/27/2019 at 06:36PM

16
#2499 - 0xNinja / @0x_Ninja

10/22/2019 at 03:02PM

16
#2500 - Kevin Yokley / @kyokley19

11/03/2019 at 07:27PM

16
#2501 - pysnow530 / @pysnow530

11/19/2019 at 11:03AM

16
#2502 - мои соседи вайнеры / @ionagamed

12/01/2019 at 08:01AM

16
#2503 - Coby Drexler / @CobyDrexler

01/09/2020 at 02:27AM

16
#2504 - 5m0r14x / @5m0r14x

01/10/2020 at 10:27PM

16
#2505 - Halfdan S. Bechmann / @HalfdanIsLame

01/14/2020 at 09:32PM

16
#2506 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 06:46PM

16
#2507 - Daniel Amkær Sørensen / @AmkRensen

01/30/2020 at 01:46PM

16
#2508 - Emil / @emilklindt

02/07/2020 at 08:27AM

16
#2509 - ser / @ser_robo

02/29/2020 at 04:52AM

16
#2510 - しまじゃき / @obknt

02/29/2020 at 05:52PM

16
#2511 - vtls / @vtls16

03/13/2020 at 02:12PM

16
#2512 - samet ぷ / @jssamet

03/18/2020 at 12:49PM

16
#2513 - fedja golf / @fedjagolf

04/13/2020 at 02:16AM

16
#2514 - mopery blue / @moperyblue10

04/13/2020 at 10:38PM

16
#2515 - Quentin Leroy / @qnleroy

05/08/2020 at 04:10PM

16
#2516 - Valdimar / @genkobar

06/01/2020 at 09:02AM

16
#2517 - soundscope / @__soundscope__

06/29/2020 at 12:38AM

16
#2518 - khedd / @sinan_khedd

07/04/2020 at 01:55PM

16
#2519 - Brennan Barker / @BrennanJBarker

07/04/2020 at 04:28PM

16
#2520 - Daniel Habib / @danielhvs

07/21/2020 at 10:00PM