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
#721 - setNull / @dadaojiemo

01/24/2017 at 12:58PM

14
#722 - Zhihong Liu / @pieapple03

01/24/2017 at 04:30PM

14
#723 - Eduardo Hashimoto / @eduhashi

01/27/2017 at 02:22AM

14
#724 - sijinyuan / @sijinyuan

02/06/2017 at 07:55AM

14
#725 - Birger / @Birger_Ni

02/08/2017 at 08:43AM

14
#726 - Eduardo Almeida / @idurdo

02/17/2017 at 01:40PM

14
#727 - Angel Chiang / @malakin

02/21/2017 at 04:08AM

14
#728 - Tim Grebien / @tiggg

02/21/2017 at 12:01PM

14
#729 - hen don / @hendon112

02/26/2017 at 11:28AM

14
#730 - Vimgolf / @vimgolf987

02/27/2017 at 03:59AM

14
#731 - Michael Hoffmann / @micha66545852

02/28/2017 at 11:05AM

14
#732 - Victor Chabbert / @victor_chabbert

03/07/2017 at 08:59AM

14
#733 - Nick Spoon / @be_the_spoon

03/07/2017 at 09:56PM

14
#734 - Gkratsia Tantilian / @Gkratsia

03/08/2017 at 10:04AM

14
#735 - Eric Beaudoin / @ericlisted

03/13/2017 at 07:20PM

14
#736 - Eozu / @eozuco

03/16/2017 at 02:42AM

14
#737 - Sergey Ryabko / @RyabkoSergey

03/19/2017 at 09:27PM

14
#738 - Andreas Anderbach / @anderbacha

03/20/2017 at 02:34PM

14
#739 - Tose / @Toseim

04/02/2017 at 06:38AM

14
#740 - Ben Moss / @mossity

04/06/2017 at 09:52PM

14
#741 - Travis Bybee / @bybeet

04/07/2017 at 09:40PM

14
#742 - ʎɐɹ / @staticjak

04/07/2017 at 09:45PM

14
#743 - Remus Dalrymple / @bornintheflames

04/08/2017 at 04:30AM

14
#744 - Фомин Денис / @TaPO4eg3D

04/13/2017 at 12:34PM

14
#745 - Will Clardy / @quexxon

04/14/2017 at 08:46PM

14
#746 - Harry Uzzell / @HarryMUzzell

04/16/2017 at 10:07AM

14
#747 - Tom BP / @ThosBP

04/20/2017 at 10:11AM

14
#748 - 梧桐王子 / @WutongYujie

04/21/2017 at 12:04PM

14
#749 - Jason Hooper 🇨🇦 / @jasonincanada

04/22/2017 at 11:17PM

14
#750 - Pratik Prasad / @pratik

04/23/2017 at 03:07PM