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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#631 - kleiduif / @bertwinwubs

11/29/2015 at 12:45AM

14
#632 - Patrick Cichon / @the_nQL

12/07/2015 at 06:27PM

14
#633 - Jiahan Wang / @hijiahanwang123

12/08/2015 at 01:13AM

14
#634 - retro / @tryphopp

12/08/2015 at 01:12PM

14
#635 - Matthew Desjardins / @Desjardins_M

12/11/2015 at 08:37PM

14
#636 - Jan Path / @jan_path

12/17/2015 at 06:34PM

14
#637 - Gordon / @gordonczedik

12/20/2015 at 06:11PM

14
#638 - Egg / @hammingdistanc1

12/25/2015 at 09:49PM

14
#639 - aanton / @aanton

12/25/2015 at 10:15PM

14
#640 - Adv_Zxy / @adv_zxy

12/26/2015 at 09:56AM

14
#641 - Jon Krause / @jkrause314

01/01/2016 at 04:06PM

14
#642 - Oisin Carroll / @oisincar

01/03/2016 at 06:38PM

14
#643 - Saki Gw / @Sakigw

01/03/2016 at 07:30PM

14
#644 - Evgeny`s Kindle / @EvgenyKindle

01/08/2016 at 12:16AM

14
#645 - Alan Kang / @alankang

01/08/2016 at 02:19AM

14
#646 - Sam Stites / @SamStites

01/08/2016 at 04:43AM

14
#647 - Roberto Carraretto / @robcarraretto

01/09/2016 at 02:31PM

14
#648 - Aleksey Zhidkov / @AlexeyZhidkov

01/15/2016 at 09:34AM

14
#649 - thejojo87 / @thejojo1987

01/22/2016 at 02:09PM

14
#650 - Sheapel User / @sheapeluser

02/01/2016 at 08:58PM

14
#651 - Daniel Suh / @18kehops

02/02/2016 at 05:15AM

14
#652 - Thijs van den Anker / @thijsvdanker

02/04/2016 at 09:41PM

14
#653 - royer / @RoyerMoyer1

02/10/2016 at 06:07PM

14
#654 - Janine Cheng / @janineist

02/13/2016 at 05:09AM

14
#655 - Mathias Andersson / @Wraul

02/13/2016 at 06:52PM

14
#656 - Piotr Kowenzowski / @sacherus

02/18/2016 at 01:57PM

14
#657 - Northern Floats / @northernfloats

02/24/2016 at 04:02AM

14
#658 - Xiaocan Li / @XiaocanLi

02/26/2016 at 04:48AM

14
#659 - Jaron Hamlik / @jdhamlik

02/27/2016 at 03:05AM

14
#660 - Louis Caruana / @louiecaruana

02/29/2016 at 05:28AM