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

3919 active golfers, 12736 entries

Leaderboard (lowest score wins):
14
#1051 - jrddp / @jrddp0

02/14/2020 at 04:53AM

14
#1052 - fumiyakk / @fumiyakk

02/16/2020 at 08:41AM

14
#1053 - Pham Tuan Anh / @anhpt379

02/17/2020 at 03:36AM

14
#1054 - Jonathan Stinson / @KnightdeadJohn

02/18/2020 at 03:05PM

14
#1055 - Andre / @5starsmug

02/18/2020 at 05:43PM

14
#1056 - howanto / @ho_wan_

02/19/2020 at 10:07PM

14
#1057 - Mushan Yang / @mushanyoung

02/25/2020 at 02:36AM

14
#1058 - Billy Nargrove / @narshah1n

02/26/2020 at 05:30PM

14
#1059 - countime / @countime1

03/05/2020 at 07:15AM

14
#1060 - Bashar Jaan Khan / @basharjaankhan

03/07/2020 at 10:19AM

14
#1061 - golferN / @golferN3

03/10/2020 at 09:06PM

14
#1062 - Sean Dewar / @seandewar

03/13/2020 at 05:01PM

14
#1063 - Niklas Ydebäck / @Ydebaeck

03/17/2020 at 12:10AM

14
#1064 - 杜撰 / @NOrUixDzwW4BbCP

03/19/2020 at 12:46PM

14
#1065 - Alexander / @Alexand64026860

03/25/2020 at 02:35PM

14
#1066 - Mats Faugli / @matsfaugli

03/29/2020 at 10:01PM

14
#1067 - relastle / @relastle

03/30/2020 at 04:24AM

14
#1068 - Rodrigo V. Lopes / @rodvlopes

04/01/2020 at 09:07PM

14
#1069 - edvrds / @edvrds

04/14/2020 at 09:33AM

14
#1070 - Moatvald / @moatvald

04/17/2020 at 07:14AM

14
#1071 - スペー / @homander2017

04/18/2020 at 04:52AM

14
#1072 - kashikasitaro / @kashikasitaro

04/18/2020 at 06:04AM

14
#1073 - cyndiii-development / @cyndiiidevelop1

04/18/2020 at 06:28AM

14
#1074 - Sikker Rosendal / @srosendaldk

04/18/2020 at 11:20AM

14
#1075 - Toby de Havilland / @tobydeh

04/19/2020 at 09:57AM

14
#1076 - sherman / @sherman37029653

04/25/2020 at 01:50AM

14
#1077 - John Sumner / @rjsumner

04/29/2020 at 03:58PM

14
#1078 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 07:45AM

14
#1079 - bladehaze / @bladehaze

05/04/2020 at 01:45AM

14
#1080 - Anay Karnik / @anay_karnik

05/08/2020 at 01:30PM