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

3317 active golfers, 10615 entries

Leaderboard (lowest score wins):
14
#361 - Vim Dude / @vim_dude

06/04/2014 at 02:21PM

14
#362 - Ben / @CubicPants

06/04/2014 at 10:55PM

14
#363 - Andy Novocin / @AndyNovocin

06/06/2014 at 01:11AM

14
#364 - yusukesasaki / @yysaki

06/08/2014 at 03:02PM

14
#365 - Robert Bruce / @therealrobru

06/08/2014 at 04:30PM

14
#366 - Jonas Arnold Clasen / @jonasclasen

06/09/2014 at 05:04PM

14
#367 - Tim Seyschab / @SeyschabTim

06/12/2014 at 07:17PM

14
#368 - Zef / @ZefMusic

06/12/2014 at 11:36PM

14
#369 - Evgeniy Veretennikov / @evg_veret

06/13/2014 at 02:44PM

14
#370 - Ole Hansen / @0hansen

06/14/2014 at 01:39PM

14
#371 - yaon / @yaon4

06/15/2014 at 02:12AM

14
#372 - Leland Paul Kusmer / @lelandpaul

06/15/2014 at 11:15PM

14
#373 - Bart / @oneofmanybarts

06/16/2014 at 07:03AM

14
#374 - Timothy Chong / @timothychongg

06/20/2014 at 06:24PM

14
#375 - John Meisner / @jmeisned

06/24/2014 at 03:59AM

14
#376 - Alex Pounds / @acreature

06/24/2014 at 07:37PM

14
#377 - Richard Jones / @metabrew

06/24/2014 at 07:41PM

14
#378 - ドラゴン井門 / @ido_mazine

06/25/2014 at 07:09AM

14
#379 - Caek / @Caek_

06/27/2014 at 03:54AM

14
#380 - jackliusr / @jackliusr

06/28/2014 at 10:10AM

14
#381 - trotha01 / @trotha01

07/01/2014 at 03:52AM

14
#382 - Nico Lehmann / @nilehmann

07/06/2014 at 05:01AM

14
#383 - James Scriven / @JamesDScriven

07/06/2014 at 01:25PM

14
#384 - Lasse Dalegaard / @ldalegaard

07/06/2014 at 09:23PM

14
#385 - playalong / @playwithit42

07/07/2014 at 09:27AM

14
#386 - Laura Halla / @laura_halla

07/08/2014 at 08:19PM

14
#387 - ren / @wxoc

07/10/2014 at 07:41AM

14
#388 - magizbox / @rain_1024

07/13/2014 at 03:03AM

14
#389 - Oleg Tsymbalyuk / @oleg_tc

07/18/2014 at 04:59AM

14
#390 - Pete Johns / @johnsyweb

07/20/2014 at 01:45AM