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

3903 active golfers, 12677 entries

Leaderboard (lowest score wins):
14
#781 - Jon Barker / @j0nbarker

07/13/2017 at 09:15AM

14
#782 - apartment1812 / @apartment18121

07/14/2017 at 12:35AM

14
#783 - Robin Ramael / @RobinRamael

07/14/2017 at 02:03PM

14
#784 - Ryan McNamara / @MadDogMcNamara

07/16/2017 at 04:49PM

14
#785 - Gabriel Siqueira / @gabrielhsiq

07/26/2017 at 10:32AM

14
#786 - huho / @huho_xu

07/29/2017 at 05:24PM

14
#787 - devoh / @devvohh

07/30/2017 at 05:02PM

14
#788 - Aki Morooka / @Aki12117528

08/05/2017 at 09:05PM

14
#789 - godot / @gclair80

08/09/2017 at 09:54PM

14
#790 - Ky Statham / @ijustwannacode

08/14/2017 at 09:10PM

14
#791 - Philippe Brouillard / @_kurowasan

08/16/2017 at 11:59PM

14
#792 - Terry Ding / @TerryDing77

08/22/2017 at 09:57PM

14
#793 - Aaron Weiss / @aweiss

08/29/2017 at 04:22PM

14
#794 - Darren Weston / @dazWestonUK

08/29/2017 at 05:13PM

14
#795 - zava / @znl1087

09/04/2017 at 03:01PM

14
#796 - MCP / @MCPShiMing

09/05/2017 at 03:32AM

14
#797 - Kutsan Kaplan / @kutsankaplan

09/06/2017 at 11:19PM

14
#798 - BarbaJol / @drpproteus

09/16/2017 at 02:31PM

14
#799 - Owen / @owengeorge_

09/21/2017 at 02:29PM

14
#800 - Karamfil / @lz1aai

09/24/2017 at 11:12PM

14
#801 - Cary Goltermann / @CaryGoltermann

09/24/2017 at 11:40PM

14
#802 - Richard Veneracion / @rveneracion

09/25/2017 at 03:25AM

14
#803 - F / @gofilby

09/26/2017 at 08:19PM

14
#804 - Sergio / @voyeg3r

09/27/2017 at 11:09PM

14
#805 - David Paul / @davidjohnpaul

09/29/2017 at 05:35AM

14
#806 - Charlie OConor / @charlieoconor

09/29/2017 at 03:35PM

14
#807 - Stephen Betts / @stephenbetts

10/04/2017 at 09:21PM

14
#808 - Jan Chwiejczak / @iamjanhak

10/22/2017 at 09:34AM

14
#809 - Michail Pishchagin / @mblsha

10/22/2017 at 03:09PM

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

10/24/2017 at 01:49PM