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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2311 - de Chezelles Benoit / @BenoitBew78

03/03/2016 at 01:38AM

16
#2312 - Jan Bundesmann / @janbundesmann

03/03/2016 at 10:07AM

16
#2313 - mac calmar / @calmarc

03/27/2016 at 09:58AM

16
#2314 - Stoyko Stanchev / @stoykostanchev

03/28/2016 at 12:41PM

16
#2315 - lilach adir / @leelaRed

03/31/2016 at 09:03AM

16
#2316 - Clémence / @Clemence_Neoxia

04/01/2016 at 07:36AM

16
#2317 - Alex Ch / @_AlexCh_

04/01/2016 at 10:48PM

16
#2318 - Kevin R / @TheKevinthDay

04/27/2016 at 03:22PM

16
#2319 - Ian Malerich / @IMalerich

05/03/2016 at 09:12PM

16
#2320 - iikieh / @iikieh

05/07/2016 at 06:10AM

16
#2321 - iNaKoll / @iNaKoll

05/07/2016 at 04:35PM

16
#2322 - Nigel Rahkola / @NinjaRahkola

05/11/2016 at 02:24AM

16
#2323 - Ben Hill / @KaizenSoze70

05/13/2016 at 06:35PM

16
#2324 - Henry Dang / @henrydangchs

05/15/2016 at 02:03AM

16
#2325 - Kerry Todyruik / @KTodyruik

05/17/2016 at 12:09AM

16
#2326 - Александр Уваров / @sanyauvarov

05/19/2016 at 08:45PM

16
#2327 - Pavol Slamka / @Archipedes

05/20/2016 at 09:30PM

16
#2328 - John Jacob / @johnrjacob

05/22/2016 at 02:08AM

16
#2329 - 白猫(zhu) / @cat2flower

06/03/2016 at 10:29AM

16
#2330 - Ab Ge / @pwahsa

06/04/2016 at 11:01AM

16
#2331 - るー / @loupbita

06/04/2016 at 11:01AM

16
#2332 - malet / @Malet

06/23/2016 at 02:21PM

16
#2333 - Timothy Caleb Nordlo / @tnordloh

06/26/2016 at 01:41AM

16
#2334 - Michael Englehorn / @K0HAX

07/02/2016 at 12:53AM

16
#2335 - Leix b / @leix_b

07/08/2016 at 04:28PM

16
#2336 - 王运 / @640138017

07/12/2016 at 05:30AM

16
#2337 - Girish Gokul / @girishgoku

07/14/2016 at 04:16AM

16
#2338 - Herbert S. / @herbertshlong

08/05/2016 at 10:38PM

16
#2339 - Дмитрий Петров / @dpetrov111

08/11/2016 at 01:39AM

16
#2340 - Luke Was / @acatalepteron

08/13/2016 at 02:56AM