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

3532 active golfers, 11357 entries

Leaderboard (lowest score wins):
24
#3331 - Shashank G Hegde / @shashankghegde

10/23/2018 at 04:19PM

24
#3332 - vimgolfer1234 / @vimgolfer12342

10/25/2018 at 12:42AM

24
#3333 - Oren Koriat / @KoriatOren

12/05/2018 at 07:23PM

24
#3334 - Bumazhka / @Bumazhka

02/11/2019 at 08:20AM

24
#3335 - Elias Daler / @EliasDaler

03/12/2019 at 03:25PM

24
#3336 - brian koh / @kxmbrian

03/26/2019 at 12:31AM

24
#3337 - Noah Epstein / @NoahJEpstein

04/11/2019 at 02:49PM

24
#3338 - Jess / @Jess74311450

06/13/2019 at 03:04PM

24
#3339 - Vim Golfer / @VimGolfer6

07/14/2019 at 02:57PM

25
#3340 - Ben Friedland / @bfriedland174

07/03/2013 at 05:42PM

25
#3341 - Vincent Lee / @vincentleest

07/08/2013 at 06:25AM

25
#3342 - Dan Harrington / @Dan1H1

07/26/2013 at 01:49AM

25
#3343 - Ignazio Mostallino / @gnagnone

08/15/2013 at 04:59PM

25
#3344 - Sukesan1984 / @sukesan1984

09/12/2013 at 12:01PM

25
#3345 - Victor Koronen / @victorkoronen

11/18/2013 at 07:09PM

25
#3346 - Vkulla / @vkulla42

11/20/2013 at 01:02AM

25
#3347 - Nicolas Friedli / @NicolasFriedli

12/01/2013 at 01:06PM

25
#3348 - 3ffus0on / @3ffusi0on

12/05/2013 at 04:24PM

25
#3349 - Eric Ahlberg / @e_ahlberg

12/14/2013 at 07:02PM

25
#3350 - Quasar Jarosz / @quasarj

01/09/2014 at 02:51AM

25
#3351 - William Fligor / @williamfligor

01/28/2014 at 05:15PM

25
#3352 - Olivier Parent / @oliparcol

02/01/2014 at 03:30PM

25
#3353 - コダマ / @pyorotan

02/13/2014 at 02:02PM

25
#3354 - Chris / @143Pi

03/28/2014 at 01:46PM

25
#3355 - Felipe Jaramillo F / @mrfelipe

04/01/2014 at 05:46AM

25
#3356 - Корнев Руслан / @woto7

06/15/2014 at 02:26AM

25
#3357 - Pratyush Mishra / @I_am_Tomato

06/21/2014 at 11:23PM

25
#3358 - eitanlees / @eitanlees

06/23/2014 at 04:36AM

25
#3359 - Paul Rodgers / @oursjaune

07/13/2014 at 02:11PM

25
#3360 - Nicolas Dascanio / @NicoDascanio

11/25/2014 at 07:49PM