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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
14
#1111 - speisz / @speiszc

06/29/2020 at 10:05PM

14
#1112 - Ming Dai / @MingDai2

06/29/2020 at 10:34PM

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

07/03/2020 at 08:44PM

14
#1114 - Jan Sturm / @JanSturm77

07/10/2020 at 10:15PM

14
#1115 - Vital Wang / @wang_vital

07/12/2020 at 06:03PM

14
#1116 - PK / @pkeugine

07/15/2020 at 02:00PM

14
#1117 - Dmitry Branitskiy / @b1azer

07/15/2020 at 06:27PM

14
#1118 - Akira Sagara / @SagaraAkira

07/17/2020 at 03:43AM

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

07/24/2020 at 03:36PM

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

08/16/2020 at 04:29PM

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

08/21/2020 at 07:29AM

14
#1122 - Alex Daum / @JustBeAwesomer

08/21/2020 at 12:16PM

14
#1123 - Stewart Martin / @aspace_au

08/23/2020 at 04:21AM

14
#1124 - Udbhav Muthakana / @udbhavm_

08/28/2020 at 02:44AM

14
#1125 - Alek Mugnozzo / @mugnozzo

08/30/2020 at 02:19PM

14
#1126 - Edan Sneh / @edan_sneh

09/04/2020 at 06:08PM

14
#1127 - dezhonger / @dezhonger

09/06/2020 at 06:11AM

14
#1128 - akouryy / @akouryy1

09/07/2020 at 03:23AM

14
#1129 - Piotr Kaznowski / @kaznowski

09/18/2020 at 06:21PM

14
#1130 - Ivan Kwong / @IvanKwong5

09/26/2020 at 04:04PM

14
#1131 - Alice / @Alice10204425

09/29/2020 at 10:20PM

14
#1132 - mstronam / @mstronam

10/02/2020 at 04:28AM

14
#1133 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/04/2020 at 01:00PM

14
#1134 - Er St / @ErSt46286501

10/09/2020 at 09:27AM

14
#1135 - noam teyssier / @noamteyssier

10/15/2020 at 03:41AM

14
#1136 - Dmitry Antonyuk / @dm_antonyuk

10/15/2020 at 04:59PM

14
#1137 - MySelf / @okmslf

10/17/2020 at 06:03PM

14
#1138 - Muradil / @MuradilUdun

10/21/2020 at 05:39PM

14
#1139 - Caio Alonso / @caioalon

11/04/2020 at 02:07AM

14
#1140 - tehnomaag / @tehnomaag

11/04/2020 at 11:11AM