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

3905 active golfers, 12682 entries

Leaderboard (lowest score wins):
14
#901 - Ondřej Soukup / @goodQuestion_or

09/16/2018 at 06:38PM

14
#902 - Rasmus Bergström / @JRasmusBm

09/27/2018 at 05:28AM

14
#903 - DoubleIA / @IaDouble

09/30/2018 at 10:38AM

14
#904 - Dax / @zacoxi

10/05/2018 at 02:28AM

14
#905 - a / @UseForVim

10/05/2018 at 01:22PM

14
#906 - Will / @VVi11_I_AM

10/07/2018 at 10:42PM

14
#907 - Taylor Shane Hawkins / @underempire

10/09/2018 at 05:16PM

14
#908 - Tuomas Jokioja / @TJokioja

10/10/2018 at 02:33PM

14
#909 - Benjamin Kiesl / @BenjaminKiesl

10/11/2018 at 01:13PM

14
#910 - Sam Kim / @samkimhis

10/14/2018 at 01:02AM

14
#911 - Alejandro Santander / @_ajsantander

10/14/2018 at 12:48PM

14
#912 - Dax / @daaawx

10/16/2018 at 04:01PM

14
#913 - ForVimGolfReally / @VimFor

11/09/2018 at 12:05AM

14
#914 - Parker Couch / @couch_parker

11/12/2018 at 05:54PM

14
#915 - Andreas Nordahl / @andreasnordahl

11/14/2018 at 05:08PM

14
#916 - name / @name65894813

11/14/2018 at 06:36PM

14
#917 - zaperrer / @zaperrer

11/17/2018 at 12:51AM

14
#918 - Bruno Cunha / @bruncun

11/18/2018 at 01:53PM

14
#919 - Michael Rose / @mdroseDev

11/23/2018 at 06:43AM

14
#920 - Jonathan Cabezas / @John_Harkan

11/27/2018 at 09:37AM

14
#921 - CptBong / @cpt1bong

11/30/2018 at 12:35AM

14
#922 - Artur Mróz / @MrozArtur

12/06/2018 at 10:07AM

14
#923 - Ruby Sapphire / @RubySapphire20

12/14/2018 at 06:21AM

14
#924 - Théo / @Theodnls

12/17/2018 at 02:56PM

14
#925 - xwlearn / @ixw1991

12/26/2018 at 03:57PM

14
#926 - MEschenbacher / @eschenbacher_m

12/27/2018 at 09:09PM

14
#927 - Andrea / @AndreaRguezFdez

12/27/2018 at 10:36PM

14
#928 - antoine mas / @aneomas

01/05/2019 at 09:10PM

14
#929 - Hawk Newton / @hawknewton

01/11/2019 at 06:11AM

14
#930 - Vildu / @Vildu3

01/16/2019 at 02:17PM