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

3979 active golfers, 13005 entries

Leaderboard (lowest score wins):
16
#2491 - Philip Stephenson / @philip_iv

07/19/2019 at 09:13PM

16
#2492 - Mike Hourahine / @mhourahine

08/01/2019 at 02:18AM

16
#2493 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 07:27PM

16
#2494 - Mr_Djez / @DjezMr

08/06/2019 at 05:34AM

16
#2495 - Rob Pilling / @bobrippling

08/09/2019 at 02:37PM

16
#2496 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:41PM

16
#2497 - BESSENG A IREH Guy / @guybesseng

08/18/2019 at 01:13AM

16
#2498 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:15PM

16
#2499 - Masi Valkonen / @masivalkonen

08/27/2019 at 10:29PM

16
#2500 - ゆに / @lededex

08/28/2019 at 04:33PM

16
#2501 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:53PM

16
#2502 - majuscule / @majuscule13

09/27/2019 at 06:36PM

16
#2503 - 0xNinja / @0x_Ninja

10/22/2019 at 03:02PM

16
#2504 - Kevin Yokley / @kyokley19

11/03/2019 at 07:27PM

16
#2505 - pysnow530 / @pysnow530

11/19/2019 at 11:03AM

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

12/01/2019 at 08:01AM

16
#2507 - Coby Drexler / @CobyDrexler

01/09/2020 at 02:27AM

16
#2508 - 5m0r14x / @5m0r14x

01/10/2020 at 10:27PM

16
#2509 - Halfdan S. Bechmann / @HalfdanIsLame

01/14/2020 at 09:32PM

16
#2510 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 06:46PM

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

01/30/2020 at 01:46PM

16
#2512 - Emil / @emilklindt

02/07/2020 at 08:27AM

16
#2513 - ser / @ser_robo

02/29/2020 at 04:52AM

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

02/29/2020 at 05:52PM

16
#2515 - vtls / @vtls16

03/13/2020 at 02:12PM

16
#2516 - samet ぷ / @jssamet

03/18/2020 at 12:49PM

16
#2517 - fedja golf / @fedjagolf

04/13/2020 at 02:16AM

16
#2518 - mopery blue / @moperyblue10

04/13/2020 at 10:38PM

16
#2519 - Quentin Leroy / @qnleroy

05/08/2020 at 04:10PM

16
#2520 - Valdimar / @genkobar

06/01/2020 at 09:02AM