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

3905 active golfers, 12682 entries

Leaderboard (lowest score wins):
14
#1081 - 于吉星 / @fishermryn

05/25/2020 at 08:37AM

14
#1082 - loupiot.veloce / @LoupiotVeloce

05/27/2020 at 02:28PM

14
#1083 - Dirty Harry / @TateDirty

05/30/2020 at 01:55PM

14
#1084 - Bob / @Bob37174065

06/01/2020 at 03:34PM

14
#1085 - nbspAD / @AdNbsp

06/01/2020 at 04:10PM

14
#1086 - betmaster / @betmstr

06/09/2020 at 04:08PM

14
#1087 - Karol Łukaszewicz / @Karolukaszewicz

06/24/2020 at 11:43AM

14
#1088 - speisz / @speiszc

06/29/2020 at 10:05PM

14
#1089 - Ming Dai / @MingDai2

06/29/2020 at 10:34PM

14
#1090 - 大矢元海 / @008Genkai

07/03/2020 at 08:44PM

14
#1091 - Jan Sturm / @JanSturm77

07/10/2020 at 10:15PM

14
#1092 - Vital Wang / @wang_vital

07/12/2020 at 06:03PM

14
#1093 - PK / @pkeugine

07/15/2020 at 02:00PM

14
#1094 - Dmitry Branitskiy / @b1azer

07/15/2020 at 06:27PM

14
#1095 - Akira Sagara / @SagaraAkira

07/17/2020 at 03:43AM

14
#1096 - Виталий Макаров / @avada_keda_bra

07/24/2020 at 03:36PM

14
#1097 - Андрей / @appomsk

08/16/2020 at 04:29PM

14
#1098 - Łukasz Kadłubowski / @LAKadlubowski

08/21/2020 at 07:29AM

14
#1099 - Alex Daum / @JustBeAwesomer

08/21/2020 at 12:16PM

14
#1100 - Stewart Martin / @aspace_au

08/23/2020 at 04:21AM

14
#1101 - Udbhav Muthakana / @udbhavm_

08/28/2020 at 02:44AM

14
#1102 - Alek Mugnozzo / @mugnozzo

08/30/2020 at 02:19PM

14
#1103 - Edan Sneh / @edan_sneh

09/04/2020 at 06:08PM

14
#1104 - dezhonger / @dezhonger

09/06/2020 at 06:11AM

14
#1105 - akouryy / @akouryy1

09/07/2020 at 03:23AM

14
#1106 - 刘宏亮 / @CoyAkey

09/12/2020 at 12:22PM

14
#1107 - Piotr Kaznowski / @kaznowski

09/18/2020 at 06:21PM

14
#1108 - Ivan Kwong / @IvanKwong5

09/26/2020 at 04:04PM

14
#1109 - Alice / @Alice10204425

09/29/2020 at 10:20PM

14
#1110 - mstronam / @mstronam

10/02/2020 at 04:28AM