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
#1051 - Jonathan Jeffrey / @jonrjeffrey

12/05/2019 at 05:04AM

14
#1052 - Chris Dean / @ChrisDe62379742

12/14/2019 at 07:09AM

14
#1053 - Eviber / @youvaaaaa

12/17/2019 at 04:18PM

14
#1054 - zqi / @zq11110320

12/26/2019 at 12:34PM

14
#1055 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/28/2019 at 06:24PM

14
#1056 - JimmyGymglish / @JGymglish

01/02/2020 at 12:03PM

14
#1057 - Paul Yates / @PYates77

01/06/2020 at 06:30PM

14
#1058 - caffeineism / @caffeineism

01/07/2020 at 02:08AM

14
#1059 - mowglian / @mowglian

01/11/2020 at 03:11PM

14
#1060 - li / @li94938987

01/24/2020 at 12:26PM

14
#1061 - Tefe / @tefetic

01/24/2020 at 08:32PM

14
#1062 - Noisome Possum / @NoisomePossum

01/28/2020 at 02:39PM

14
#1063 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 02:30AM

14
#1064 - Cas / @cascer1

02/06/2020 at 03:21PM

14
#1065 - Kyle X. Clark / @KyXr_Clark

02/10/2020 at 01:34AM

14
#1066 - Falafel Palapel / @falafelpalapel

02/12/2020 at 08:40PM

14
#1067 - jrddp / @jrddp0

02/14/2020 at 04:53AM

14
#1068 - fumiyakk / @fumiyakk

02/16/2020 at 08:41AM

14
#1069 - Pham Tuan Anh / @anhpt379

02/17/2020 at 03:36AM

14
#1070 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:05PM

14
#1071 - Andre / @5starsmug

02/18/2020 at 05:43PM

14
#1072 - howanto / @ho_wan_

02/19/2020 at 10:07PM

14
#1073 - Mushan Yang / @mushanyoung

02/25/2020 at 02:36AM

14
#1074 - Billy Nargrove / @narshah1n

02/26/2020 at 05:30PM

14
#1075 - countime / @countime1

03/05/2020 at 07:15AM

14
#1076 - Bashar Jaan Khan / @basharjaankhan

03/07/2020 at 10:19AM

14
#1077 - golferN / @golferN3

03/10/2020 at 09:06PM

14
#1078 - Sean Dewar / @seandewar

03/13/2020 at 05:01PM

14
#1079 - Niklas Ydebäck / @Ydebaeck

03/17/2020 at 12:10AM

14
#1080 - 杜撰 / @NOrUixDzwW4BbCP

03/19/2020 at 12:46PM