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

3535 active golfers, 11368 entries

Leaderboard (lowest score wins):
25
#3361 - eitanlees / @eitanlees

06/23/2014 at 04:36AM

25
#3362 - Paul Rodgers / @oursjaune

07/13/2014 at 02:11PM

25
#3363 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 07:49PM

25
#3364 - Bruno Vieira Costa / @bruno_vcosta

11/10/2015 at 01:09AM

25
#3365 - Christopher Wells / @ExcaliburZero_Z

12/06/2015 at 09:05PM

25
#3366 - Kevin Gisi / @cheerskevin

02/22/2016 at 09:07AM

25
#3367 - OlivierLi / @LiZhongSin

11/17/2016 at 02:13PM

25
#3368 - Austin Ray / @austospumanto

04/14/2017 at 10:02AM

25
#3369 - Doug Chan / @Coufu

04/28/2017 at 04:47PM

25
#3370 - Marc Hunter / @MrMarcHunter

08/05/2017 at 08:58PM

25
#3371 - Herr Joschka / @HerrJoschka

10/22/2017 at 05:38AM

25
#3372 - Spacesh1p / @spacesh1pdev

01/03/2018 at 06:55AM

25
#3373 - eddie leon / @_eddie_leon

01/25/2018 at 03:46PM

25
#3374 - Amanj Sherwany / @amanjpro

03/04/2018 at 08:19PM

25
#3375 - Hugo / @szeyattai

08/17/2018 at 07:42AM

25
#3376 - Bruce Adams / @bruceadams1054

10/06/2018 at 10:09AM

25
#3377 - Gustavo Almeida / @gustaalmeidaws

11/04/2018 at 08:11PM

25
#3378 - throwaway / @throwaw77650361

03/05/2019 at 07:40PM

25
#3379 - R / @rvan3210

05/01/2019 at 04:49AM

25
#3380 - vimgolfacct / @vimgolfacct

07/05/2019 at 03:48PM

25
#3381 - Fred Leclerc / @fredleclerc

07/24/2019 at 05:57PM

26
#3382 - Josh Vinson / @zyxwyvu

07/02/2013 at 06:40PM

26
#3383 - jmpak / @jmpak

08/07/2013 at 03:06PM

26
#3384 - Ban / @Rheriel

10/22/2013 at 01:47PM

26
#3385 - Colin DeCarlo / @colindecarlo

11/15/2013 at 03:07AM

26
#3386 - Kevin Curtin / @KCurtin

12/17/2013 at 03:04PM

26
#3387 - oujingwen / @oujingwen

12/19/2013 at 08:46AM

26
#3388 - Joel Calado / @jcalado

02/02/2014 at 08:22PM

26
#3389 - Levi / @thatguylevi

02/04/2014 at 08:45PM

26
#3390 - AZ / @lazywithclass

02/24/2014 at 09:18PM