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

3323 active golfers, 10641 entries

Leaderboard (lowest score wins):
14
#451 - Bellator nobilis / @BNobilis

12/12/2014 at 12:25AM

14
#452 - zmo / @guyzmo

12/28/2014 at 07:39PM

14
#453 - kimber gonzalez / @kimberlycreates

12/29/2014 at 09:12PM

14
#454 - juicelink / @juicelink

12/30/2014 at 02:18AM

14
#455 - yachi / @yaachi

12/30/2014 at 03:58AM

14
#456 - Nick Dyer / @nickbdyer

12/31/2014 at 03:27PM

14
#457 - Maximiliano Padulo / @mpadulo

01/02/2015 at 10:37AM

14
#458 - Alex Birdsall / @OilCanSamson

01/05/2015 at 01:17AM

14
#459 - Hiroshi Kato / @kato1628

01/08/2015 at 12:50PM

14
#460 - はやぶさ / @haya14busa

01/08/2015 at 07:46PM

14
#461 - Zull Full / @Zullfull

01/09/2015 at 06:08PM

14
#462 - Oli Lalonde / @o_lalonde

01/11/2015 at 12:18PM

14
#463 - Andrew / @akxlr

01/13/2015 at 10:22AM

14
#464 - ZhangXiaochen / @zhang_xiaochen

01/13/2015 at 02:27PM

14
#465 - Carlos A Henríquez Q / @lagunex

01/16/2015 at 12:45PM

14
#466 - low_ghost / @low_ghost_clone

01/17/2015 at 05:39PM

14
#467 - Petro Тrouq / @zulolosi

01/19/2015 at 02:45AM

14
#468 - Håken Lid / @haakenlid

01/19/2015 at 08:31AM

14
#469 - Плеханов Дмитрий / @onemanstartup

01/19/2015 at 01:59PM

14
#470 - Harm te Hennepe / @HrmtH

01/22/2015 at 04:07PM

14
#471 - ben / @bpaqd

01/23/2015 at 04:38AM

14
#472 - Adam Stankiewicz / @sheerun

01/25/2015 at 09:06PM

14
#473 - ~Nicolas_Poulain / @nicolaspoulain

01/29/2015 at 09:42PM

14
#474 - Loser Face / @heypetewhats

01/30/2015 at 01:59PM

14
#475 - Nolic / @cNolic

01/30/2015 at 10:41PM

14
#476 - Jérôme Salignon / @JeromeSalignon

02/01/2015 at 06:35PM

14
#477 - Steven Lu / @stevenlu443

02/07/2015 at 05:02AM

14
#478 - Константин / @xni

02/08/2015 at 05:08PM

14
#479 - James Pringle / @mathbyjames

02/13/2015 at 07:40PM

14
#480 - Naseem Al-Naji / @NaseemAlnaji

02/13/2015 at 10:27PM