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

3533 active golfers, 11363 entries

Leaderboard (lowest score wins):
24
#3301 - Zakaria / @KODOQUE

11/02/2013 at 09:04PM

24
#3302 - Nico Erfurth / @masta_de

11/11/2013 at 02:16PM

24
#3303 - Xavier Coiffard / @AngeZanetti

01/13/2014 at 07:06PM

24
#3304 - Luc Mazardo / @lxtrmz

01/23/2014 at 02:17PM

24
#3305 - Zach Fry / @ZachFry2

01/29/2014 at 12:00AM

24
#3306 - Aurélien Vallée / @aurelienvallee

01/31/2014 at 12:31PM

24
#3307 - Rhodri Pugh / @rodnaph

02/02/2014 at 09:09PM

24
#3308 - Uwe Voelker / @uwevoelker

02/12/2014 at 08:52PM

24
#3309 - Casper Oakley / @casperoakley

03/25/2014 at 11:36PM

24
#3310 - d1uckym d1uckym / @d1uckym

04/03/2014 at 02:05AM

24
#3311 - Lorin Hochstein / @lhochstein

04/14/2014 at 01:45AM

24
#3312 - Luiz Hespanha / @luiz_hespanha

05/15/2014 at 01:51AM

24
#3313 - Pablo Acuña R. / @pabloacunar

06/22/2014 at 11:34PM

24
#3314 - cybercide / @cybercide

06/28/2014 at 02:25AM

24
#3315 - JP / @jpbida

08/23/2014 at 04:23AM

24
#3316 - Greg / @developergreg

09/05/2014 at 02:42PM

24
#3317 - Willy / @Jifuka

03/15/2015 at 02:37AM

24
#3318 - Evan Coleman / @edc1591

04/02/2015 at 07:55PM

24
#3319 - Maxime / @Maxime_VII

06/23/2015 at 11:18AM

24
#3320 - Andreas Schlegel / @andischl

07/26/2015 at 12:10PM

24
#3321 - Itamar Gal / @novicevimgolfer

08/16/2015 at 12:59AM

24
#3322 - Jakob Schöttl / @jschoettl

12/20/2015 at 04:29AM

24
#3323 - Vladimir Leskov / @vladimirlesk

12/21/2015 at 08:41PM

24
#3324 - Max Del Giudice / @max_forest

04/18/2016 at 07:54AM

24
#3325 - drumstix576 / @drumstix576

05/11/2016 at 03:05AM

24
#3326 - arun mukundan / @manyids2

03/22/2017 at 01:23PM

24
#3327 - MrMatuski / @MrMatuski

03/28/2018 at 05:24PM

24
#3328 - Danya Smith / @danyadsmith

08/01/2018 at 03:31AM

24
#3329 - Alexander Covington / @ACov96

08/30/2018 at 05:53PM

24
#3330 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

10/19/2018 at 02:44AM