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

3979 active golfers, 13005 entries

Leaderboard (lowest score wins):
14
#1171 - blabla zincou / @BZincou

04/15/2022 at 12:20AM

14
#1172 - Youssef Magdy / @youssef_magdy29

05/01/2022 at 01:04AM

14
#1173 - Levi Wheeler / @LeviWhe68726437

05/23/2022 at 10:50PM

14
#1174 - x03n046 / @x03n046

05/30/2022 at 11:30AM

14
#1175 - z00master / @z00master

08/23/2022 at 04:07PM

14
#1176 - Janzen / @__Coos

09/27/2022 at 12:07PM

14
#1177 - @grhkm@infosec.exchange / @grhkm21

12/20/2022 at 02:23PM

14
#1178 - でよ / @tada_kun8

01/23/2023 at 04:41AM

14
#1179 - Selvaganapathy P / @canabady

04/19/2023 at 05:33AM

14
#1180 - vimmac / @vimmac13823

06/14/2023 at 10:12AM

14
#1181 - くりち / 栗原佑弥 / @kurichi97

06/29/2023 at 12:40PM

14
#1182 - Hans Wurscht / @HansW313

09/15/2023 at 12:36PM

14
#1183 - shikitanrei / @shikitanrei

01/20/2024 at 01:21PM

14
#1184 - Yusei Ueno / @YuseiUeno

06/26/2024 at 03:09AM

14
#1185 - mau-mauricelim / @mau-mauricelim

08/22/2024 at 07:09AM

14
#1186 - Rayan Ali SALEM / @VKWHM

08/22/2024 at 01:19PM

14
#1187 - Willy / @Willy6932612311

09/03/2024 at 08:31PM

14
#1188 - Magnus Wahlstrand / @magnuswahlstrand

12/25/2024 at 10:29AM

15
#1189 - Marco Hinz / @_mhinz_

05/15/2013 at 09:57AM

15
#1190 - Marijn van Vliet / @wmvanvliet

05/15/2013 at 03:28PM

15
#1191 - Adit Cahya Ramadhan / @aditcr8

05/16/2013 at 01:50AM

15
#1192 - Asmund / @herrasbe

05/16/2013 at 08:06PM

15
#1193 - Justin / @justinjaffray

05/17/2013 at 12:59AM

15
#1194 - Vim Golfer / @vimgolfern00b

05/17/2013 at 07:27AM

15
#1195 - Jim / @BLSJim

05/18/2013 at 11:18AM

15
#1196 - M8R eonxi21 / @eonxi21

05/20/2013 at 01:24PM

15
#1197 - Richard John Soni / @richsoni

05/24/2013 at 08:45PM

15
#1198 - Victor Ramirez / @virako

05/25/2013 at 11:01PM

15
#1199 - Jacob Straszynski / @jacobstr

05/27/2013 at 07:38AM

15
#1200 - Fl4t / @Fl4t

05/28/2013 at 08:27PM