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

3971 active golfers, 12975 entries

Leaderboard (lowest score wins):
16
#2401 - Ron Alexssen / @Ralexhere

10/13/2017 at 10:44PM

16
#2402 - Brian Hall / @_bruab_

10/16/2017 at 03:22PM

16
#2403 - Kai Hübner / @knollenkopp

10/24/2017 at 07:00PM

16
#2404 - Sam Coy / @samthecoy

10/25/2017 at 11:46AM

16
#2405 - Armaan Shah / @armaani96

10/26/2017 at 02:07AM

16
#2406 - MiloradKukic / @MiloradKukic

10/27/2017 at 07:23AM

16
#2407 - Sébastien Canart / @kokotchY

10/28/2017 at 09:00AM

16
#2408 - popo5colo / @popo5colo1

10/31/2017 at 07:12AM

16
#2409 - Paul Bunch / @gigatesla

11/20/2017 at 09:37PM

16
#2410 - QingyuZhao / @zhao_qingyu

11/21/2017 at 08:13AM

16
#2411 - macmental / @macmental

11/26/2017 at 10:56PM

16
#2412 - Emmanuel Fuentes / @manufuents

11/27/2017 at 02:27AM

16
#2413 - Collin Smith / @CollinSmith1990

12/10/2017 at 12:38AM

16
#2414 - Piotr Lewicki / @lewiatan11

12/11/2017 at 11:35AM

16
#2415 - Михаил Сурин / @realssmike

12/16/2017 at 09:51PM

16
#2416 - allinonemovie / @allinonemovie

12/17/2017 at 05:51PM

16
#2417 - gink / @anagiwa

12/19/2017 at 10:23AM

16
#2418 - Elias Åström / @ryvnfn

12/27/2017 at 12:20AM

16
#2419 - Simon Cheng / @bambooraccoon

01/15/2018 at 04:18PM

16
#2420 - つまっく。 / @tsumac1203

01/19/2018 at 09:43AM

16
#2421 - Sebastian Wieland / @oktupol

01/19/2018 at 02:23PM

16
#2422 - Jacob Tailor / @spydronex

01/25/2018 at 07:20PM

16
#2423 - genoskill / @Genoskill

01/29/2018 at 03:36AM

16
#2424 - 陈振宇 / @1243065115

01/31/2018 at 05:37PM

16
#2425 - Rajeev Ranjan Jha / @rajeevcreatorjh

02/10/2018 at 05:51PM

16
#2426 - Max Horn / @maexlich

03/02/2018 at 11:01PM

16
#2427 - Lisa Ugray / @lisa_ugray

03/13/2018 at 03:57PM

16
#2428 - Plósz Péter / @ploszpe

03/23/2018 at 09:56PM

16
#2429 - matthew brett / @matthewbrett

03/25/2018 at 07:48AM

16
#2430 - Marcos Almeida / @almeidamarcos_

04/08/2018 at 10:32PM