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
#241 - shinokada / @shinokada

02/01/2014 at 01:58AM

14
#242 - Mina Naguib / @minaguib

02/02/2014 at 03:45AM

14
#243 - packysauce / @packysauce

02/02/2014 at 06:14AM

14
#244 - Jonathan Ellington / @JEllington90

02/02/2014 at 06:54AM

14
#245 - Reese Wilson / @shinyvimgolf

02/02/2014 at 07:34AM

14
#246 - Ali El Amine / @Allouch95

02/02/2014 at 09:26AM

14
#247 - Serhii Balbieko / @balbeko

02/02/2014 at 02:01PM

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

02/02/2014 at 06:48PM

14
#249 - Tyler Tesch / @TylerTesch

02/02/2014 at 07:31PM

14
#250 - Michał Bendowski / @benol

02/02/2014 at 11:34PM

14
#251 - grey wolfs / @grey_wolfs

02/03/2014 at 04:53AM

14
#252 - William L. James / @williamljames

02/03/2014 at 07:02AM

14
#253 - Mario / @MarioPrint

02/03/2014 at 07:37AM

14
#254 - Jakub Zíka / @JakubZika

02/03/2014 at 10:09AM

14
#255 - Yongho / @YONG_HO

02/03/2014 at 10:11AM

14
#256 - Strabs / @artistavenue

02/03/2014 at 01:08PM

14
#257 - Kirill Gordeenko / @kgordeenko

02/03/2014 at 01:59PM

14
#258 - Michael Morgan / @1n1n1s3

02/03/2014 at 05:23PM

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

02/03/2014 at 05:51PM

14
#260 - Rustam A. Gasanov / @rustamagasanov

02/03/2014 at 07:25PM

14
#261 - Denis Otkidach / @otkds

02/04/2014 at 10:29AM

14
#262 - Marcin Cabaj / @marcincabaj

02/04/2014 at 01:47PM

14
#263 - Simon George / @sfcgim

02/04/2014 at 01:51PM

14
#264 - Colin Schmidt / @cfszero

02/04/2014 at 05:38PM

14
#265 - Johannes Schickling / @_schickling

02/04/2014 at 08:59PM

14
#266 - Vitalii / @veelenga

02/04/2014 at 09:34PM

14
#267 - Bart Nagel / @bjnagel

02/04/2014 at 10:25PM

14
#268 - Tyler van Hensbergen / @tvanhens

02/08/2014 at 10:41PM

14
#269 - Nunya Bizness / @NunyaBi85490244

02/08/2014 at 11:10PM

14
#270 - Vlad-Ștefan Harbuz / @vladh

02/10/2014 at 11:02AM