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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#811 - Ky Statham / @ijustwannacode

08/14/2017 at 09:10PM

14
#812 - Philippe Brouillard / @_kurowasan

08/16/2017 at 11:59PM

14
#813 - Terry Ding / @TerryDing77

08/22/2017 at 09:57PM

14
#814 - Aaron Weiss / @aweiss

08/29/2017 at 04:22PM

14
#815 - Darren Weston / @dazWestonUK

08/29/2017 at 05:13PM

14
#816 - zava / @znl1087

09/04/2017 at 03:01PM

14
#817 - MCP / @MCPShiMing

09/05/2017 at 03:32AM

14
#818 - Kutsan Kaplan / @kutsankaplan

09/06/2017 at 11:19PM

14
#819 - BarbaJol / @drpproteus

09/16/2017 at 02:31PM

14
#820 - Owen / @owengeorge_

09/21/2017 at 02:29PM

14
#821 - Karamfil / @lz1aai

09/24/2017 at 11:12PM

14
#822 - Cary Goltermann / @CaryGoltermann

09/24/2017 at 11:40PM

14
#823 - Richard Veneracion / @rveneracion

09/25/2017 at 03:25AM

14
#824 - F / @gofilby

09/26/2017 at 08:19PM

14
#825 - Sergio / @voyeg3r

09/27/2017 at 11:09PM

14
#826 - David Paul / @davidjohnpaul

09/29/2017 at 05:35AM

14
#827 - Charlie OConor / @charlieoconor

09/29/2017 at 03:35PM

14
#828 - Stephen Betts / @stephenbetts

10/04/2017 at 09:21PM

14
#829 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 09:34AM

14
#830 - Michail Pishchagin / @mblsha

10/22/2017 at 03:09PM

14
#831 - じごくのたまねぎ / @namasutedesyo

10/24/2017 at 01:49PM

14
#832 - Anthony Shivers / @_AnthonyShivers

10/24/2017 at 03:07PM

14
#833 - mkl / @Hnr1zklc

10/27/2017 at 10:39AM

14
#834 - MathijsHoogland / @MathijsHoogland

11/02/2017 at 08:48PM

14
#835 - vimgolfer / @vimgolfinger

11/06/2017 at 12:58PM

14
#836 - Turkey Man / @lvturkeyman

11/07/2017 at 04:47PM

14
#837 - Juuso Valkeejärvi / @jussovalk

11/10/2017 at 08:18PM

14
#838 - Chris Kirkland / @numbahs

11/12/2017 at 03:16AM

14
#839 - Ad Infinitum / @Ad_Inifinitum

11/13/2017 at 07:20PM

14
#840 - Benoit Mortgat / @Benoit_Mortgat

11/13/2017 at 08:40PM