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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
15
#1561 - loki2441 / @loki2441

09/05/2016 at 11:12AM

15
#1562 - jinx balotchnik / @balotchnik

09/11/2016 at 11:45PM

15
#1563 - Stanislav / @prstad

09/12/2016 at 03:18PM

15
#1564 - ILikeVim / @VimIsCool

09/13/2016 at 06:18AM

15
#1565 - Shahaf A / @Av3r4ge

09/13/2016 at 09:47AM

15
#1566 - Batuhan Bayrakçı / @bay_batu

09/17/2016 at 10:26PM

15
#1567 - ✘A / @Lolicon_H

09/23/2016 at 02:23PM

15
#1568 - Kyouma / @kyoumaJohn

10/12/2016 at 10:22PM

15
#1569 - Josh Callender / @Saponifi3d

10/17/2016 at 01:52AM

15
#1570 - Domus Code / @DomusCode

10/19/2016 at 09:26AM

15
#1571 - Igor Czerwinski / @igoratron

10/23/2016 at 12:29PM

15
#1572 - Bill Ruddock / @biinari

10/26/2016 at 12:21AM

15
#1573 - Douglas Roper / @dougdroper

12/18/2016 at 03:07PM

15
#1574 - Jan Eisenhauer / @EisenhauerJan

12/23/2016 at 09:33PM

15
#1575 - Daniel Hogan / @danielhogan21

01/26/2017 at 04:33AM

15
#1576 - aselaIllayaparachchi / @asela38

02/05/2017 at 03:57AM

15
#1577 - Yann / @yannstad

02/19/2017 at 08:49AM

15
#1578 - Edras / @Edras41862627

02/22/2017 at 04:02PM

15
#1579 - Etai Nativ / @enativ72

03/01/2017 at 07:36PM

15
#1580 - Russell Ball / @rtball2

03/07/2017 at 01:37AM

15
#1581 - Daniel Hjelm / @dhjelm

03/08/2017 at 12:17PM

15
#1582 - xwle / @xwle

03/11/2017 at 04:28PM

15
#1583 - Alexander Bessonov / @nonsleepr

03/12/2017 at 09:33PM

15
#1584 - GVest Two / @GvestTwo

03/24/2017 at 08:32AM

15
#1585 - Solomon / @Trugbildjaeger

03/30/2017 at 09:57PM

15
#1586 - Aman Singhal / @helixinverse

03/31/2017 at 03:08AM

15
#1587 - Roland TheFreak / @_TheFreak_

04/17/2017 at 09:40PM

15
#1588 - Armin Grodon / @ArminGrodon

04/19/2017 at 09:23PM

15
#1589 - Anton Matveev / @aush_tx

05/01/2017 at 11:56AM

15
#1590 - Stefan Uhl / @der_wuschl

05/02/2017 at 10:43AM