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

3905 active golfers, 12682 entries

Leaderboard (lowest score wins):
14
#1141 - 김범준 / @kmbmjn

01/13/2021 at 12:19PM

14
#1142 - 蔡徐坤真是爱吃屎 / @Hashub7

01/22/2021 at 05:26AM

14
#1143 - tylertucker202 / @tylertucker202

01/22/2021 at 09:53PM

14
#1144 - Gaston / @Gaston53635525

01/25/2021 at 10:42PM

14
#1145 - OtterPy / @OtterPy

01/27/2021 at 09:14AM

14
#1146 - Michel Viktor / @tomkpz

07/27/2021 at 05:13AM

15
#1147 - Marco Hinz / @_mhinz_

05/15/2013 at 09:57AM

15
#1148 - Marijn van Vliet / @wmvanvliet

05/15/2013 at 03:28PM

15
#1149 - Adit Cahya Ramadhan / @aditcr8

05/16/2013 at 01:50AM

15
#1150 - Asmund / @herrasbe

05/16/2013 at 08:06PM

15
#1151 - Justin / @justinjaffray

05/17/2013 at 12:59AM

15
#1152 - Vim Golfer / @vimgolfern00b

05/17/2013 at 07:27AM

15
#1153 - Jim / @BLSJim

05/18/2013 at 11:18AM

15
#1154 - M8R eonxi21 / @eonxi21

05/20/2013 at 01:24PM

15
#1155 - Richard John Soni / @richsoni

05/24/2013 at 08:45PM

15
#1156 - Victor Ramirez / @virako

05/25/2013 at 11:01PM

15
#1157 - Jacob Straszynski / @jacobstr

05/27/2013 at 07:38AM

15
#1158 - Fl4t / @Fl4t

05/28/2013 at 08:27PM

15
#1159 - Booberius / @booberius

05/30/2013 at 01:42PM

15
#1160 - Tom User / @kiryph

05/30/2013 at 05:07PM

15
#1161 - Nikita Leshenko / @nikita_l

06/01/2013 at 11:19AM

15
#1162 - Vito / @GodFather

06/03/2013 at 05:30AM

15
#1163 - retired account / @retired10072015

06/03/2013 at 10:26AM

15
#1164 - Ryan Davis / @rsdavis865

06/07/2013 at 04:18AM

15
#1165 - rcmdnk / @rcmdnk

06/11/2013 at 11:00AM

15
#1166 - Eric Söderström / @eksoderstrom

06/13/2013 at 09:24PM

15
#1167 - Ryan Castillo / @rmcastil

06/23/2013 at 11:57PM

15
#1168 - Adrian Roston / @akroston

06/24/2013 at 01:51AM

15
#1169 - Jonáš Šerých / @serycjon

06/25/2013 at 08:14PM

15
#1170 - Arthur LEDARD / @arthur_yaal

06/27/2013 at 03:20PM