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

3979 active golfers, 13005 entries

Leaderboard (lowest score wins):
16
#1981 - newton / @newtonsmartt

10/15/2013 at 11:42PM

16
#1982 - Lajos Koszti / @Ajnasz

10/16/2013 at 11:33AM

16
#1983 - no / @justforvimgolf

10/16/2013 at 12:33PM

16
#1984 - foo / @foo88832727

10/18/2013 at 02:10PM

16
#1985 - Nik Klassen / @nik_klassen

10/21/2013 at 08:04PM

16
#1986 - syncroswitch / @syncorswitch

10/23/2013 at 06:38PM

16
#1987 - J. Nick Terry / @deft_code

10/23/2013 at 08:08PM

16
#1988 - Rodolphe Belouin / @rbelouin

10/23/2013 at 10:47PM

16
#1989 - Hiro Suzuki / @hiro_suzuki

10/25/2013 at 03:02AM

16
#1990 - Fabian / @crapslog

10/25/2013 at 08:25AM

16
#1991 - DESCHAMPS Henrick / @H3nr1ck_

10/26/2013 at 07:51AM

16
#1992 - n.st / @0013901644043f9

10/27/2013 at 05:35PM

16
#1993 - Ben White / @MichaelBeemer

10/27/2013 at 11:38PM

16
#1994 - Lorcan McDonald / @lorcanmcdonald

10/31/2013 at 03:13PM

16
#1995 - Pieter Kuijpers / @pkuijpers

11/02/2013 at 04:08PM

16
#1996 - Michał Ciepły / @cieplok

11/02/2013 at 08:07PM

16
#1997 - Michael / @Acktagatta

11/03/2013 at 11:28PM

16
#1998 - Alexey Shmalko / @RasenDubi

11/04/2013 at 04:07PM

16
#1999 - Erez Shinan / @erezsh

11/05/2013 at 01:26PM

16
#2000 - Leo Critchley / @leojfc

11/06/2013 at 10:57AM

16
#2001 - c / @mmo_chess

11/06/2013 at 05:36PM

16
#2002 - Jakub Horák / @kubahorak

11/07/2013 at 06:18AM

16
#2003 - albert peng / @holoiii

11/07/2013 at 11:55PM

16
#2004 - Patrick Paul-Hus / @hydrozen

11/10/2013 at 01:10AM

16
#2005 - vall / @provall1

11/13/2013 at 10:13AM

16
#2006 - Kyle McKee / @McKee_Kyle

11/13/2013 at 01:05PM

16
#2007 - Edgar Hipp / @EdgarHipp

11/14/2013 at 04:51PM

16
#2008 - Mathieu Larouche / @matdube

11/15/2013 at 12:26PM

16
#2009 - Anton / @AntonKalyaev

11/15/2013 at 03:37PM

16
#2010 - Денис Кириченко / @Deni10o

11/15/2013 at 03:41PM