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):
25
#3691 - Ignazio Mostallino / @gnagnone

08/15/2013 at 04:59PM

25
#3692 - Sukesan1984 / @sukesan1984

09/12/2013 at 12:01PM

25
#3693 - Victor Koronen / @victorkoronen

11/18/2013 at 07:09PM

25
#3694 - Vkulla / @vkulla42

11/20/2013 at 01:02AM

25
#3695 - Nicolas Friedli / @NicolasFriedli

12/01/2013 at 01:06PM

25
#3696 - 3ffus0on / @3ffusi0on

12/05/2013 at 04:24PM

25
#3697 - Eric Ahlberg / @e_ahlberg

12/14/2013 at 07:02PM

25
#3698 - Quasar Jarosz / @quasarj

01/09/2014 at 02:51AM

25
#3699 - William Fligor / @williamfligor

01/28/2014 at 05:15PM

25
#3700 - Olivier Parent / @oliparcol

02/01/2014 at 03:30PM

25
#3701 - コダマ / @pyorotan

02/13/2014 at 02:02PM

25
#3702 - Chris / @143Pi

03/28/2014 at 01:46PM

25
#3703 - Felipe Jaramillo F / @mrfelipe

04/01/2014 at 05:46AM

25
#3704 - Корнев Руслан / @woto7

06/15/2014 at 02:26AM

25
#3705 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:23PM

25
#3706 - eitanlees / @eitanlees

06/23/2014 at 04:36AM

25
#3707 - Paul Rodgers / @oursjaune

07/13/2014 at 02:11PM

25
#3708 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 07:49PM

25
#3709 - Bruno Vieira Costa / @bruno_vcosta

11/10/2015 at 01:09AM

25
#3710 - Christopher Wells / @ExcaliburZero_Z

12/06/2015 at 09:05PM

25
#3711 - Kevin Gisi / @cheerskevin

02/22/2016 at 09:07AM

25
#3712 - OlivierLi / @LiZhongSin

11/17/2016 at 02:13PM

25
#3713 - Austin Ray / @austospumanto

04/14/2017 at 10:02AM

25
#3714 - Doug Chan / @Coufu

04/28/2017 at 04:47PM

25
#3715 - Marc Hunter / @MrMarcHunter

08/05/2017 at 08:58PM

25
#3716 - Herr Joschka / @HerrJoschka

10/22/2017 at 05:38AM

25
#3717 - Spacesh1p / @spacesh1pdev

01/03/2018 at 06:55AM

25
#3718 - eddie leon / @_eddie_leon

01/25/2018 at 03:46PM

25
#3719 - Amanj Sherwany / @amanjpro

03/04/2018 at 08:19PM

25
#3720 - Hugo / @szeyattai

08/17/2018 at 07:42AM