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

3902 active golfers, 12676 entries

Leaderboard (lowest score wins):
14
#241 - Korbinian Stoemmer / @PaulSmecker

01/30/2014 at 08:27PM

14
#242 - Jonny / @Jonnytron

01/30/2014 at 10:32PM

14
#243 - Joiey Seeley / @jseeley

01/31/2014 at 06:19AM

14
#244 - Luke Worth / @povman

01/31/2014 at 11:06PM

14
#245 - shinokada / @shinokada

02/01/2014 at 01:58AM

14
#246 - Mina Naguib / @minaguib

02/02/2014 at 03:45AM

14
#247 - packysauce / @packysauce

02/02/2014 at 06:14AM

14
#248 - Jonathan Ellington / @JEllington90

02/02/2014 at 06:54AM

14
#249 - Reese Wilson / @shinyvimgolf

02/02/2014 at 07:34AM

14
#250 - Ali El Amine / @Allouch95

02/02/2014 at 09:26AM

14
#251 - serhii / @balbieko

02/02/2014 at 02:01PM

14
#252 - Леха Иванов / @xhoskin

02/02/2014 at 06:48PM

14
#253 - Tyler Tesch / @TylerTesch

02/02/2014 at 07:31PM

14
#254 - Michał Bendowski / @benol

02/02/2014 at 11:34PM

14
#255 - grey wolfs / @grey_wolfs

02/03/2014 at 04:53AM

14
#256 - William L. James / @williamljames

02/03/2014 at 07:02AM

14
#257 - Mario / @MarioPrint

02/03/2014 at 07:37AM

14
#258 - Jakub Zíka / @JakubZika

02/03/2014 at 10:09AM

14
#259 - Yongho / @YONG_HO

02/03/2014 at 10:11AM

14
#260 - Strabs / @artistavenue

02/03/2014 at 01:08PM

14
#261 - Kirill Gordeenko / @kgordeenko

02/03/2014 at 01:59PM

14
#262 - Michael Morgan / @1n1n1s3

02/03/2014 at 05:23PM

14
#263 - Павел Шнель / @lic06397

02/03/2014 at 05:51PM

14
#264 - Rustam A. Gasanov / @rustamagasanov

02/03/2014 at 07:25PM

14
#265 - Denis Otkidach / @otkds

02/04/2014 at 10:29AM

14
#266 - Marcin Cabaj / @marcincabaj

02/04/2014 at 01:47PM

14
#267 - Simon George / @sfcgim

02/04/2014 at 01:51PM

14
#268 - Colin Schmidt / @cfszero

02/04/2014 at 05:38PM

14
#269 - Johannes Schickling / @_schickling

02/04/2014 at 08:59PM

14
#270 - Vitalii / @veelenga

02/04/2014 at 09:34PM