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
#3721 - Bruce Adams / @bruceadams1054

10/06/2018 at 10:09AM

25
#3722 - Gustavo Almeida / @gustaalmeidaws

11/04/2018 at 08:11PM

25
#3723 - throwaway / @throwaw77650361

03/05/2019 at 07:40PM

25
#3724 - R / @1rvan3210

05/01/2019 at 04:49AM

25
#3725 - vimgolfacct / @vimgolfacct

07/05/2019 at 03:48PM

25
#3726 - Fred Leclerc / @fredleclerc

07/24/2019 at 05:57PM

25
#3727 - Brent Westbrook / @westbrook_brent

01/22/2020 at 09:43PM

25
#3728 - Ali Kero / @stochastist

02/14/2020 at 07:16AM

25
#3729 - Tiago Nascimento / @tigum27

07/25/2020 at 02:11AM

25
#3730 - 𝗙 ▲ 𝗥 𝗜 𝗦 𝗦 / @APsockes

10/08/2020 at 12:25AM

26
#3731 - Josh Vinson / @zyxwyvu

07/02/2013 at 06:40PM

26
#3732 - jmpak / @jmpak

08/07/2013 at 03:06PM

26
#3733 - Ban / @Rheriel

10/22/2013 at 01:47PM

26
#3734 - Colin DeCarlo / @colindecarlo

11/15/2013 at 03:07AM

26
#3735 - Kevin Curtin / @KCurtin

12/17/2013 at 03:04PM

26
#3736 - oujingwen / @oujingwen

12/19/2013 at 08:46AM

26
#3737 - Joel Calado / @jcalado

02/02/2014 at 08:22PM

26
#3738 - Levi / @thatguylevi

02/04/2014 at 08:45PM

26
#3739 - AZ / @lazywithclass

02/24/2014 at 09:18PM

26
#3740 - Chris Davison / @davisonnn

05/24/2014 at 11:18PM

26
#3741 - robby bustle / @bobbyrussa

05/29/2014 at 04:24AM

26
#3742 - Johannes Rubenz / @j_rubenz

11/06/2014 at 03:26PM

26
#3743 - manish mishra / @manishrdmishra

01/12/2015 at 11:45PM

26
#3744 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:25PM

26
#3745 - Edgard Leal / @EdgardLeal

05/25/2016 at 02:01PM

26
#3746 - John Wilson / @Login4anonymity

10/06/2016 at 05:31AM

26
#3747 - Wiktor Jeziorski / @WiktorJeziorsk1

08/18/2017 at 09:46PM

26
#3748 - Pingtermasmoo / @pingtermasmoo

09/13/2018 at 07:55AM

26
#3749 - KöşeKafa / @kuarkonyum

09/28/2018 at 04:50PM

26
#3750 - Jonny Wilson / @thejondom

12/21/2018 at 09:27PM