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
#901 - heisenderp / @0xheisenderp

08/03/2018 at 01:56PM

14
#902 - BanyRule / @BanyRule

08/05/2018 at 02:32PM

14
#903 - Jacky Lee / @grenmester

08/07/2018 at 06:04AM

14
#904 - O / @O34721877

08/07/2018 at 06:32AM

14
#905 - PCS Solutions / @PeteSolutions

08/10/2018 at 07:37PM

14
#906 - Noel Qiao / @NoelQiao

08/16/2018 at 02:34AM

14
#907 - Brandon Emery Craig / @iambcraig

08/17/2018 at 08:02PM

14
#908 - Mark Watson / @mrkrwtsn

08/17/2018 at 08:05PM

14
#909 - Fergus Longley / @FergusLongley

08/18/2018 at 11:32AM

14
#910 - Roberto Martínez / @nilp0inter

08/26/2018 at 09:33PM

14
#911 - Simon Ingelsson / @_DeVVaN_

08/27/2018 at 12:19PM

14
#912 - Lucas / @Lucas24474922

08/28/2018 at 01:40PM

14
#913 - Trey Deitch / @differenceeq

09/02/2018 at 12:29AM

14
#914 - Manuel Oswald / @_maoswald

09/02/2018 at 12:27PM

14
#915 - a / @a05150445

09/06/2018 at 03:49AM

14
#916 - Jeff / @sir_wiggles3

09/07/2018 at 08:21AM

14
#917 - Ezekiel Vladimir / @EzekielVladimir

09/11/2018 at 09:51AM

14
#918 - Bart3k / @Bart3k3

09/11/2018 at 07:41PM

14
#919 - Robin De Mol / @RobinDeMol

09/14/2018 at 08:50AM

14
#920 - Rebecca V. / @rxbxccxv

09/15/2018 at 06:38AM

14
#921 - Ruben Paz / @IstarEldritch

09/16/2018 at 05:19PM

14
#922 - Ondřej Soukup / @goodQuestion_or

09/16/2018 at 06:38PM

14
#923 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 05:28AM

14
#924 - DoubleIA / @IaDouble

09/30/2018 at 10:38AM

14
#925 - Dax / @zacoxi

10/05/2018 at 02:28AM

14
#926 - a / @UseForVim

10/05/2018 at 01:22PM

14
#927 - Will / @VVi11_I_AM

10/07/2018 at 10:42PM

14
#928 - Taylor Shane Hawkins / @underempire

10/09/2018 at 05:16PM

14
#929 - Tuomas Jokioja / @TJokioja

10/10/2018 at 02:33PM

14
#930 - Benjamin Kiesl / @BenjaminKiesl

10/11/2018 at 01:13PM