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

3889 active golfers, 12642 entries

Leaderboard (lowest score wins):
14
#841 - Guirec CORBEL / @GuirecCorbel

02/25/2018 at 11:59PM

14
#842 - GreenPinguin / @GreenPinguin2

03/07/2018 at 04:41PM

14
#843 - knight / @ndknight

03/11/2018 at 09:09AM

14
#844 - Steven Petsche / @StevenPetsche

03/11/2018 at 09:18AM

14
#845 - Chris Sutton / @cs1379320

03/12/2018 at 02:54AM

14
#846 - Jacky / @MrBearPan

03/12/2018 at 10:44PM

14
#847 - Alec Goebel / @bewarethegrue

03/23/2018 at 08:37PM

14
#848 - towc / @MateiCopot

03/29/2018 at 07:01AM

14
#849 - vimthrowaway / @vimgolf_throw

03/29/2018 at 09:20AM

14
#850 - ewalk153 / @ewalk153

04/01/2018 at 12:14AM

14
#851 - ken / @mindnaked

04/04/2018 at 07:08AM

14
#852 - Fichera Gaetano / @gaetanofic

04/10/2018 at 03:40PM

14
#853 - Andrzej Wąsowski / @AndrzejWasowski

04/19/2018 at 12:10PM

14
#854 - Milan Ľudma / @turiec_

04/29/2018 at 09:51PM

14
#855 - Daniel Liu / @idanieliu

05/03/2018 at 05:35AM

14
#856 - Justin Hoyt / @JustinHoyt24

05/04/2018 at 01:35PM

14
#857 - golfer / @golfer30767399

05/04/2018 at 10:06PM

14
#858 - Kaydo Alders / @Yousousen

05/07/2018 at 08:43PM

14
#859 - Zach Johnson / @zachjohnsondev

05/07/2018 at 11:51PM

14
#860 - Bimal Gaudel / @BimalGaudel

05/08/2018 at 10:30AM

14
#861 - Alexey Shiklomanov / @ashiklom711

05/09/2018 at 02:27PM

14
#862 - Matt Aschmann / @ma7hatter

05/21/2018 at 06:38PM

14
#863 - golfal / @golfal2

06/02/2018 at 02:46AM

14
#864 - Daniël De Koker / @daniel_koker

06/03/2018 at 03:50PM

14
#865 - r / @revanthedarth

06/06/2018 at 03:43AM

14
#866 - Davidoir / @Davidoir

06/07/2018 at 10:23AM

14
#867 - Jules Wichita / @octarlol

06/07/2018 at 09:42PM

14
#868 - martin tourneboeuf / @martintournebo1

06/19/2018 at 09:16PM

14
#869 - steph-query / @StephQuery

06/29/2018 at 10:16PM

14
#870 - 3admin / @achtebaby

06/29/2018 at 11:14PM