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
#1141 - g̵̨̛̺̝̮̋͆̅͝r̶̦͗̐̓̉a̵͉͋̎c̵̺͉̉͝e̴͙̘͎͚̹̳͛̀͂͆̂ / @___grce

11/07/2020 at 11:58PM

14
#1142 - David Kutschke / @D4KU_

11/15/2020 at 11:32AM

14
#1143 - MrRubiksSC / @RubiksSc

11/25/2020 at 09:56PM

14
#1144 - hepebexè / @hepebexe

11/26/2020 at 09:38PM

14
#1145 - James Lowenthal / @JamesAnthonyLow

11/27/2020 at 09:58PM

14
#1146 - Ihor / @Ihor96382508

11/29/2020 at 10:03AM

14
#1147 - Hugh / @haquaman

11/30/2020 at 10:04PM

14
#1148 - Neverlandrunner / @neverlandrunner

12/06/2020 at 03:30AM

14
#1149 - — / @Cenarius

12/07/2020 at 02:40AM

14
#1150 - Ryan Way / @RyanWay16

12/12/2020 at 06:12AM

14
#1151 - Ian Burgan / @IanBurgan

12/14/2020 at 03:40PM

14
#1152 - Bots Be Postin' / @TPRolling

12/16/2020 at 08:34PM

14
#1153 - Bob / @Bob25621943

12/17/2020 at 05:00PM

14
#1154 - pherapont / @pherapont1

12/18/2020 at 05:41AM

14
#1155 - justinhj / @justinhj

12/31/2020 at 03:43AM

14
#1156 - Jung Yeon Park / @park_jungy

01/01/2021 at 07:07PM

14
#1157 - Kha Nguyen / @__ngtrongkha

01/04/2021 at 06:45AM

14
#1158 - Nicolas Pagny / @NicolasPagny

01/08/2021 at 10:34AM

14
#1159 - Austin Scott / @theMetgame

01/11/2021 at 02:38AM

14
#1160 - Adam Katz / @AdamKat40357638

01/11/2021 at 04:20PM

14
#1161 - Ravi S Sinha / @ambidextrousTx

01/12/2021 at 01:08AM

14
#1162 - 김범준 / @kmbmjn

01/13/2021 at 12:19PM

14
#1163 - 蔡徐坤真是爱吃屎 / @Hashub7

01/22/2021 at 05:26AM

14
#1164 - tylertucker202 / @tylertucker202

01/22/2021 at 09:53PM

14
#1165 - Gaston / @Gaston53635525

01/25/2021 at 10:42PM

14
#1166 - OtterPy / @OtterPy

01/27/2021 at 09:14AM

14
#1167 - Michel Viktor / @tomkpz

07/27/2021 at 05:13AM

14
#1168 - Jean George / @JeanGeo20504212

09/08/2021 at 07:48PM

14
#1169 - Flimsy Giraffe / @flimsy_giraffe

11/27/2021 at 06:34PM

14
#1170 - blabla zincou / @BZincou

04/15/2022 at 12:20AM