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

3725 active golfers, 12053 entries

Leaderboard (lowest score wins):
16
#2341 - shaz / @shaz30307204

05/30/2019 at 01:11PM

16
#2342 - Frank Harrison / @doublethefish

06/16/2019 at 12:29PM

16
#2343 - Lewis Clayton / @l_ew_is

07/11/2019 at 10:33AM

16
#2344 - Florent Uguet / @FlorentUguet

07/11/2019 at 03:32PM

16
#2345 - Mat / @matpbo

07/12/2019 at 02:49AM

16
#2346 - mirsemen / @mirsemen1

07/15/2019 at 09:48AM

16
#2347 - Philip Stephenson / @philip_iv

07/19/2019 at 09:13PM

16
#2348 - Mike Hourahine / @mhourahine

08/01/2019 at 02:18AM

16
#2349 - Ivo Blöchliger / @aigledesalpes

08/02/2019 at 07:27PM

16
#2350 - Mr_Djez / @DjezMr

08/06/2019 at 05:34AM

16
#2351 - Rob Pilling / @bobrippling

08/09/2019 at 02:37PM

16
#2352 - Luiz Eduardo Amaral / @_luxedo

08/09/2019 at 04:41PM

16
#2353 - BESSENG A IREH Guy / @guybesseng

08/18/2019 at 01:13AM

16
#2354 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 02:15PM

16
#2355 - Masi Valkonen / @masivalkonen

08/27/2019 at 10:29PM

16
#2356 - ciela / @lededex

08/28/2019 at 04:33PM

16
#2357 - Ariel Miculas / @ArielMiculas

09/18/2019 at 04:53PM

16
#2358 - majuscule / @majuscule13

09/27/2019 at 06:36PM

16
#2359 - 0xNinja / @0x_Ninja

10/22/2019 at 03:02PM

16
#2360 - Kevin Yokley / @kyokley19

11/03/2019 at 07:27PM

16
#2361 - pysnow530 / @pysnow530

11/19/2019 at 11:03AM

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

12/01/2019 at 08:01AM

16
#2363 - Coby Drexler / @CobyDrexler

01/09/2020 at 02:27AM

16
#2364 - 5m0r14x / @5m0r14x

01/10/2020 at 10:27PM

16
#2365 - Halfdan S. Bechmann / @HalfdanIsLame

01/14/2020 at 09:32PM

16
#2366 - Rune Warhuus / @DinkDonkNorway

01/22/2020 at 06:46PM

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

01/30/2020 at 01:46PM

16
#2368 - Emil / @emilklindt

02/07/2020 at 08:27AM

16
#2369 - ser / @ser_robo

02/29/2020 at 04:52AM

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

02/29/2020 at 05:52PM