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

3919 active golfers, 12736 entries

Leaderboard (lowest score wins):
14
#901 - Bart3k / @Bart3k3

09/11/2018 at 07:41PM

14
#902 - Robin De Mol / @RobinDeMol

09/14/2018 at 08:50AM

14
#903 - Rebecca V. / @rxbxccxv

09/15/2018 at 06:38AM

14
#904 - Ruben Paz / @IstarEldritch

09/16/2018 at 05:19PM

14
#905 - Ondřej Soukup / @goodQuestion_or

09/16/2018 at 06:38PM

14
#906 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 05:28AM

14
#907 - DoubleIA / @IaDouble

09/30/2018 at 10:38AM

14
#908 - Dax / @zacoxi

10/05/2018 at 02:28AM

14
#909 - a / @UseForVim

10/05/2018 at 01:22PM

14
#910 - Will / @VVi11_I_AM

10/07/2018 at 10:42PM

14
#911 - Taylor Shane Hawkins / @underempire

10/09/2018 at 05:16PM

14
#912 - Tuomas Jokioja / @TJokioja

10/10/2018 at 02:33PM

14
#913 - Benjamin Kiesl / @BenjaminKiesl

10/11/2018 at 01:13PM

14
#914 - Sam Kim / @samkimhis

10/14/2018 at 01:02AM

14
#915 - Alejandro Santander / @_ajsantander

10/14/2018 at 12:48PM

14
#916 - Dax / @daaawx

10/16/2018 at 04:01PM

14
#917 - ForVimGolfReally / @VimFor

11/09/2018 at 12:05AM

14
#918 - Parker Couch / @couch_parker

11/12/2018 at 05:54PM

14
#919 - Andreas Nordahl / @andreasnordahl

11/14/2018 at 05:08PM

14
#920 - name / @name65894813

11/14/2018 at 06:36PM

14
#921 - zaperrer / @zaperrer

11/17/2018 at 12:51AM

14
#922 - Bruno Cunha / @bruncun

11/18/2018 at 01:53PM

14
#923 - Michael Rose / @mdroseDev

11/23/2018 at 06:43AM

14
#924 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 09:37AM

14
#925 - CptBong / @cpt1bong

11/30/2018 at 12:35AM

14
#926 - Artur Mróz / @MrozArtur

12/06/2018 at 10:07AM

14
#927 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 06:21AM

14
#928 - Théo / @Theodnls

12/17/2018 at 02:56PM

14
#929 - xwlearn / @ixw1991

12/26/2018 at 03:57PM

14
#930 - MEschenbacher / @eschenbacher_m

12/27/2018 at 09:09PM