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
#1021 - Chris Covert / @covertcj

11/07/2019 at 08:44PM

14
#1022 - harmony_krieg / @harmony_krieg

11/09/2019 at 12:15PM

14
#1023 - skamgolf / @skamgolf

11/10/2019 at 12:28AM

14
#1024 - shoji541 / @shoji541

11/10/2019 at 12:20PM

14
#1025 - Lei Kin / @kireinasorakin

11/12/2019 at 06:20PM

14
#1026 - Daniel Klepacki / @daniel_klepacki

11/14/2019 at 05:48PM

14
#1027 - shota_ogswr / @shota_ogasawara

11/24/2019 at 03:03PM

14
#1028 - Magnus Bjuvensjö / @mbjuvensjo

11/24/2019 at 11:01PM

14
#1029 - cínicoycansino / @pgv958

11/29/2019 at 09:50AM

14
#1030 - Hector Ricardo / @Hector_Ricardo3

12/03/2019 at 10:10PM

14
#1031 - Jonathan Jeffrey / @projjects

12/05/2019 at 05:04AM

14
#1032 - Chris Dean / @ChrisDe62379742

12/14/2019 at 07:09AM

14
#1033 - Eviber / @youvaaaaa

12/17/2019 at 04:18PM

14
#1034 - zqi / @zq11110320

12/26/2019 at 12:34PM

14
#1035 - 임덕윤 / @SnLHUF5ZYJXqI1m

12/28/2019 at 06:24PM

14
#1036 - JimmyGymglish / @JGymglish

01/02/2020 at 12:03PM

14
#1037 - Paul Yates / @PYates77

01/06/2020 at 06:30PM

14
#1038 - caffeineism / @caffeineism

01/07/2020 at 02:08AM

14
#1039 - mowglian / @mowglian

01/11/2020 at 03:11PM

14
#1040 - li / @li94938987

01/24/2020 at 12:26PM

14
#1041 - Tefe / @tefetic

01/24/2020 at 08:32PM

14
#1042 - Noisome Possum / @NoisomePossum

01/28/2020 at 02:39PM

14
#1043 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 02:30AM

14
#1044 - Cas / @cascer1

02/06/2020 at 03:21PM

14
#1045 - Kyle X. Clark / @KyXr_Clark

02/10/2020 at 01:34AM

14
#1046 - Falafel Palapel / @falafelpalapel

02/12/2020 at 08:40PM

14
#1047 - jrddp / @jrddp0

02/14/2020 at 04:53AM

14
#1048 - fumiyakk / @fumiyakk

02/16/2020 at 08:41AM

14
#1049 - Pham Tuan Anh / @anhpt379

02/17/2020 at 03:36AM

14
#1050 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:05PM