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
#2371 - Juha Paatelma / @jpaatelm

04/20/2017 at 11:10AM

16
#2372 - Rami Hovi / @hacker_lawyer

04/25/2017 at 08:43AM

16
#2373 - Sean / @seanmcclory

04/30/2017 at 06:07AM

16
#2374 - Alexander Gryson / @agryson

05/01/2017 at 03:51PM

16
#2375 - Tom Houlé / @_tomhoule

05/04/2017 at 12:25PM

16
#2376 - Edouard Piette / @EdPiette

05/04/2017 at 03:27PM

16
#2377 - almostdvs / @almostdvs

05/23/2017 at 02:31AM

16
#2378 - BlackCap / @BlackCapCoder

05/24/2017 at 05:55PM

16
#2379 - Karl Hepler / @oldtimeguitar

05/25/2017 at 06:06PM

16
#2380 - Adriano Benin / @adrianob11

06/06/2017 at 03:33PM

16
#2381 - Adam Bozanich / @abozanich

06/08/2017 at 03:44AM

16
#2382 - kanazawak / @_kanazawak

06/18/2017 at 07:20AM

16
#2383 - Mayank Suman / @mayank_suman

06/24/2017 at 06:29PM

16
#2384 - grigouille / @grigouille2

07/04/2017 at 08:22PM

16
#2385 - Sinthorion / @sinthorion

08/02/2017 at 01:18PM

16
#2386 - Charlier / @Charlicanman

08/06/2017 at 02:54PM

16
#2387 - toddkoym / @toddkoym

08/07/2017 at 09:58PM

16
#2388 - Adam Kożuch / @adamkozuch

08/16/2017 at 05:55AM

16
#2389 - Ryan Patterson / @CGamesPlay

08/18/2017 at 03:09AM

16
#2390 - nekorug😊🌼 / @nekorug

08/24/2017 at 01:31AM

16
#2391 - asdf jkl; / @asdfjkl58010662

08/25/2017 at 11:44AM

16
#2392 - 2tegebgfdtrg2 / @mugzam3

08/28/2017 at 01:08PM

16
#2393 - Andrew Whitaker / @andrewwhitaker

09/09/2017 at 06:05PM

16
#2394 - yuval k / @limsoup

09/14/2017 at 09:10AM

16
#2395 - xer0.5ive / @Bibekshah

09/22/2017 at 08:44PM

16
#2396 - Zacharias / @zeottt

09/28/2017 at 02:03PM

16
#2397 - Geoff / @RealGeoffErwin

09/28/2017 at 07:50PM

16
#2398 - Christian Bauer / @Christi55765900

09/30/2017 at 05:23PM

16
#2399 - tanguyGerome / @TanguyGerome

10/02/2017 at 12:09PM

16
#2400 - Denis Kaluznyy / @Spy_Denis

10/04/2017 at 03:07PM