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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
22
#3511 - anonrab / @anonrab

12/28/2015 at 03:33PM

22
#3512 - Jasbir Singh / @jasbirsingh11

01/18/2016 at 04:51PM

22
#3513 - Elias Nyström / @nighstrom

01/27/2016 at 07:56AM

22
#3514 - Camron Flanders / @camflan

03/25/2016 at 01:25PM

22
#3515 - Andy / @mayuyu48a

04/20/2016 at 04:23AM

22
#3516 - Evan / @Klekticist

05/02/2016 at 11:13AM

22
#3517 - Chris Armstrong / @ChrisATweets

05/19/2016 at 11:18PM

22
#3518 - Brian Cantrell / @briancantrell

09/01/2016 at 07:47PM

22
#3519 - a1exwang / @ice_b0und

09/05/2016 at 06:22AM

22
#3520 - Filype Pereira / @FilypePereira

12/26/2016 at 03:50AM

22
#3521 - Atsushi Terada / @terada_atsushi

03/29/2017 at 11:44AM

22
#3522 - python-tweepy / @python_tweepy

05/15/2017 at 01:47AM

22
#3523 - 三井 源 / @mitsuigh

07/24/2017 at 07:31PM

22
#3524 - poster board / @mm_mut_mu11

11/11/2017 at 07:45PM

22
#3525 - manos koustelakis / @KoutsManos

11/18/2017 at 07:08PM

22
#3526 - P. Bogaard / @Pepbogaard

01/21/2018 at 01:37AM

22
#3527 - Markus Ankenbrand / @IIMOG

02/10/2018 at 09:02PM

22
#3528 - Vincent Dahmen / @wahrwolf

03/29/2018 at 02:59PM

22
#3529 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:30AM

22
#3530 - Walerian Sobczak / @walerian777

05/04/2018 at 10:22AM

22
#3531 - 신지훈 / @iwUeDn1UGj3aXZ3

06/29/2018 at 08:37AM

22
#3532 - Jonathan Kim / @jonykim16

08/20/2018 at 04:46AM

22
#3533 - 伺か / @ojiry

09/20/2018 at 09:37AM

22
#3534 - Omar Zeidan / @OZeidan97

11/13/2018 at 12:27PM

22
#3535 - leziak2 / @leziak2

12/24/2018 at 01:30AM

22
#3536 - Kyle Safran / @kylesafran

01/19/2019 at 02:09AM

22
#3537 - Patrick Lavin / @LavinComputes

01/31/2019 at 03:30PM

22
#3538 - Thilo Rörig / @scholith

02/21/2019 at 09:31PM

22
#3539 - DanSnow / @dododavid006

03/06/2019 at 02:24AM

22
#3540 - Березницкий Вадим / @vad1mster

07/06/2019 at 06:11PM