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

3536 active golfers, 11370 entries

Leaderboard (lowest score wins):
22
#3181 - Collin Richards / @MrBallinCollin

11/09/2014 at 10:07AM

22
#3182 - Xavier Perez / @DuoSRX

11/16/2014 at 06:25PM

22
#3183 - Ayman Farhat / @aymanfarhat

01/07/2015 at 11:34AM

22
#3184 - Swastik / @__swastik

03/15/2015 at 06:50AM

22
#3185 - Familial Rhino / @FamilialRhino

03/23/2015 at 07:26PM

22
#3186 - Tim Abramson / @timabramson

05/04/2015 at 09:48PM

22
#3187 - Lucien Baron / @Luci1B

06/16/2015 at 06:31PM

22
#3188 - Olik / @oli33k

07/15/2015 at 02:09PM

22
#3189 - Stani Banani / @Stani_Banani

09/10/2015 at 11:04PM

22
#3190 - anonrab / @anonrab

12/28/2015 at 03:33PM

22
#3191 - Jasbir Singh / @jasbirsingh11

01/18/2016 at 04:51PM

22
#3192 - Elias Nyström / @nighstrom

01/27/2016 at 07:56AM

22
#3193 - Camron Flanders / @camflan

03/25/2016 at 01:25PM

22
#3194 - Andy / @mayuyu48a

04/20/2016 at 04:23AM

22
#3195 - Evan / @Klekticist

05/02/2016 at 11:13AM

22
#3196 - Chris Armstrong / @ChrisATweets

05/19/2016 at 11:18PM

22
#3197 - Brian Cantrell / @briancantrell

09/01/2016 at 07:47PM

22
#3198 - a1exwang / @ice_b0und

09/05/2016 at 06:22AM

22
#3199 - Filype Pereira / @FilypePereira

12/26/2016 at 03:50AM

22
#3200 - Atsushi Terada / @terada_atsushi

03/29/2017 at 11:44AM

22
#3201 - python-tweepy / @python_tweepy

05/15/2017 at 01:47AM

22
#3202 - J. SUI / @mitsuigh

07/24/2017 at 07:31PM

22
#3203 - poster board / @mm_mut_mu11

11/11/2017 at 07:45PM

22
#3204 - manos koustelakis / @KoutsManos

11/18/2017 at 07:08PM

22
#3205 - P. Bogaard / @Pepbogaard

01/21/2018 at 01:37AM

22
#3206 - Markus Ankenbrand / @IIMOG

02/10/2018 at 09:02PM

22
#3207 - Vincent Dahmen / @wahrwolf

03/29/2018 at 02:59PM

22
#3208 - Alex Budilovsky / @alexbudy

05/02/2018 at 01:30AM

22
#3209 - Walerian Sobczak / @walerian777

05/04/2018 at 10:22AM

22
#3210 - 신지훈 / @iwUeDn1UGj3aXZ3

06/29/2018 at 08:37AM