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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
15
#1261 - Mike Hearn / @mikehearn

01/28/2014 at 10:40PM

15
#1262 - Kim Yie / @taalcon

01/28/2014 at 11:55PM

15
#1263 - Starski / @mstarski

01/29/2014 at 11:50AM

15
#1264 - John Phelan / @jackphel

02/01/2014 at 03:50AM

15
#1265 - Sherwin Yu / @sherwin_yu

02/01/2014 at 04:57AM

15
#1266 - Felix Fischer / @felixfischer

02/02/2014 at 04:53PM

15
#1267 - Sebastián Lara M. / @slaramen

02/02/2014 at 11:06PM

15
#1268 - Arnaud Brousseau / @arnaudbrousseau

02/03/2014 at 07:21AM

15
#1269 - Helge Milde / @helgefmi

02/03/2014 at 11:35AM

15
#1270 - Edgar Alloro / @alloro_e

02/03/2014 at 11:56AM

15
#1271 - boris cat / @boriscatmeow

02/03/2014 at 12:23PM

15
#1272 - Mike Marion / @mikejmarion

02/03/2014 at 05:50PM

15
#1273 - jimauthors / @jimauthors

02/04/2014 at 10:30PM

15
#1274 - Adam Faanes / @AFaanes

02/05/2014 at 06:21AM

15
#1275 - Stijn Seghers / @StijnSeghers

02/06/2014 at 12:04PM

15
#1276 - Ricardo M. Vilchis / @ajkaanbal

02/10/2014 at 02:05AM

15
#1277 - rocpatel / @rocpatel

02/10/2014 at 03:09PM

15
#1278 - buzzzz / @buzzzz

02/11/2014 at 11:03AM

15
#1279 - Cullen O'Neill / @Kujaon

02/11/2014 at 07:18PM

15
#1280 - Felix Boers / @felixboers

02/11/2014 at 11:33PM

15
#1281 - Franco Biasin / @francoKazan

02/12/2014 at 08:56PM

15
#1282 - Adrian Negreanu / @groleo

02/14/2014 at 12:07PM

15
#1283 - Ben Blaxill / @BenBlaxill

02/15/2014 at 04:34AM

15
#1284 - Jean / @ygu0_0

02/16/2014 at 12:52AM

15
#1285 - Pierre Laporte / @pingtimeout

02/16/2014 at 09:44AM

15
#1286 - Kai Leddy / @FrogInABoxx

02/20/2014 at 10:39AM

15
#1287 - フミ ハシ / @fumi_hs

02/20/2014 at 02:07PM

15
#1288 - Ben Lambeth / @azy2_ben

02/23/2014 at 06:19AM

15
#1289 - 伊藤想 / @itoso_jp

02/23/2014 at 10:53AM

15
#1290 - ney_lemke / @ney_lemke

02/24/2014 at 01:36AM