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

3970 active golfers, 12969 entries

Leaderboard (lowest score wins):
15
#1651 - mdgill / @mdgill

05/03/2018 at 02:57PM

15
#1652 - Wake Lankard / @wakelank

05/04/2018 at 12:56AM

15
#1653 - Quade Morrison / @quade_morrison

05/07/2018 at 12:23AM

15
#1654 - Eugene / @youjeannn

05/08/2018 at 05:29AM

15
#1655 - Owen Loughran / @_ObeseAnorexic_

05/08/2018 at 07:18PM

15
#1656 - Jean-paul Barbier / @jpdobar

05/09/2018 at 03:44PM

15
#1657 - Jonathan Camilleri / @Too_Many_Taken

05/20/2018 at 01:38PM

15
#1658 - Chien-Wei Sun / @chienweisun

05/21/2018 at 08:19PM

15
#1659 - Cosmic Frog / @Cozmicfrog

05/22/2018 at 03:08PM

15
#1660 - Marchand Paul-Valère / @pvmarch

05/25/2018 at 07:42AM

15
#1661 - c0llision / @sh3llcode

05/27/2018 at 01:18PM

15
#1662 - omrisarig / @omrisarig

06/02/2018 at 07:33PM

15
#1663 - Kris Ezra / @kris_ezra

06/12/2018 at 06:51PM

15
#1664 - 中野 彰 / @M__tech

06/22/2018 at 08:20AM

15
#1665 - fayard / @fayard43698270

06/22/2018 at 01:24PM

15
#1666 - Tom ten Thij / @eco_coder

07/03/2018 at 08:52AM

15
#1667 - Henry Woolenthorpe / @woolenthorpe

07/03/2018 at 11:33PM

15
#1668 - 赤佐田奈葉 / @akasatanaha_

07/05/2018 at 05:01AM

15
#1669 - Marco Meyer / @marcomeyerVFX

07/07/2018 at 10:20PM

15
#1670 - xarfg / @xarphg

07/09/2018 at 09:45AM

15
#1671 - theMagni / @The_theMagni

07/12/2018 at 01:20AM

15
#1672 - yqu212 / @yqu212

07/26/2018 at 02:12PM

15
#1673 - Rajesh Sharma / @deepredsky

07/26/2018 at 02:17PM

15
#1674 - Jack Magnus / @jadomag

08/04/2018 at 06:56PM

15
#1675 - Theo Andersen Carton / @TheoAndersen

08/07/2018 at 06:59PM

15
#1676 - maxime he / @he_maxime

08/11/2018 at 01:58PM

15
#1677 - Lorenzo Leonini / @Leol_

08/12/2018 at 09:52AM

15
#1678 - James Houghton / @jamesthoughton

08/14/2018 at 10:30PM

15
#1679 - Daichi / @daichi1014

08/16/2018 at 03:42AM

15
#1680 - Тёма / @Timon_Surikat

08/19/2018 at 06:57PM