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

3732 active golfers, 12075 entries

Leaderboard (lowest score wins):
16
#2371 - Emil / @emilklindt

02/07/2020 at 08:27AM

16
#2372 - ser / @ser_robo

02/29/2020 at 04:52AM

16
#2373 - しまじゃき / @obknt

02/29/2020 at 05:52PM

16
#2374 - vtls / @vtls16

03/13/2020 at 02:12PM

16
#2375 - samet ぷ / @jssamet

03/18/2020 at 12:49PM

16
#2376 - fedja golf / @FedjaGolf

04/13/2020 at 02:16AM

16
#2377 - mopery blue / @moperyblue10

04/13/2020 at 10:38PM

16
#2378 - Quentin Leroy / @qnleroy

05/08/2020 at 04:10PM

16
#2379 - Valdimar / @genkobar

06/01/2020 at 09:02AM

16
#2380 - soundscope / @__soundscope__

06/29/2020 at 12:38AM

16
#2381 - khedd / @sinan_khedd

07/04/2020 at 01:55PM

16
#2382 - Brennan Barker / @BrennanJBarker

07/04/2020 at 04:28PM

17
#2383 - Christos Kontas / @ckontas

05/15/2013 at 04:39PM

17
#2384 - Dhruva Sagar / @dhruvasagar

05/22/2013 at 09:42AM

17
#2385 - Simon Walker / @srwalker101

05/30/2013 at 10:49AM

17
#2386 - Matt Robbins / @mcrmfc

06/19/2013 at 09:31AM

17
#2387 - Kyle Partridge / @partkyle

06/24/2013 at 05:39PM

17
#2388 - Alexey / @kramar42

07/04/2013 at 01:08PM

17
#2389 - curist / @curist

07/08/2013 at 08:08AM

17
#2390 - Forrest Zeisler / @fzeisler

07/08/2013 at 07:55PM

17
#2391 - RobertT / @techrt2050

07/10/2013 at 01:17AM

17
#2392 - Christopher Bahr / @bahrware

07/11/2013 at 03:46AM

17
#2393 - Austin Quan / @n00blebowl

07/31/2013 at 12:48AM

17
#2394 - Joel Trottier-Hebert / @JoelTHebert

08/14/2013 at 07:26PM

17
#2395 - Joe Fox / @mrWumpus

08/17/2013 at 04:28AM

17
#2396 - Michael Galanakis / @galadude

08/18/2013 at 09:40AM

17
#2397 - engy / @engydmw

09/02/2013 at 06:37PM

17
#2398 - 오종빈(Jongbin Oh) / @ohyecloudy

09/11/2013 at 09:35AM

17
#2399 - Bailey Ling / @blingcoder

09/12/2013 at 03:48AM

17
#2400 - kimmi / @kimspindel

09/21/2013 at 10:51PM