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

3888 active golfers, 12630 entries

Leaderboard (lowest score wins):
14
#1051 - howanto / @ho_wan_

02/19/2020 at 10:07PM

14
#1052 - Mushan Yang / @mushanyoung

02/25/2020 at 02:36AM

14
#1053 - Billy Nargrove / @narshah1n

02/26/2020 at 05:30PM

14
#1054 - countime / @countime1

03/05/2020 at 07:15AM

14
#1055 - Bashar Jaan Khan / @basharjaankhan

03/07/2020 at 10:19AM

14
#1056 - golferN / @golferN3

03/10/2020 at 09:06PM

14
#1057 - Sean Dewar / @seandewar

03/13/2020 at 05:01PM

14
#1058 - Niklas Ydebäck / @Ydebaeck

03/17/2020 at 12:10AM

14
#1059 - 杜撰 / @NOrUixDzwW4BbCP

03/19/2020 at 12:46PM

14
#1060 - Alexander / @Alexand64026860

03/25/2020 at 02:35PM

14
#1061 - Mats Faugli / @matsfaugli

03/29/2020 at 10:01PM

14
#1062 - relastle / @relastle

03/30/2020 at 04:24AM

14
#1063 - Rodrigo V. Lopes / @rodvlopes

04/01/2020 at 09:07PM

14
#1064 - edvrds / @edvrds

04/14/2020 at 09:33AM

14
#1065 - Moatvald / @moatvald

04/17/2020 at 07:14AM

14
#1066 - スペー / @homander2017

04/18/2020 at 04:52AM

14
#1067 - kashikasitaro / @kashikasitaro

04/18/2020 at 06:04AM

14
#1068 - cyndiii-development / @cyndiiidevelop1

04/18/2020 at 06:28AM

14
#1069 - Sikker Rosendal / @srosendaldk

04/18/2020 at 11:20AM

14
#1070 - Toby de Havilland / @tobydeh

04/19/2020 at 09:57AM

14
#1071 - sherman / @sherman37029653

04/25/2020 at 01:50AM

14
#1072 - John Sumner / @rjsumner

04/29/2020 at 03:58PM

14
#1073 - Arthur Goodman / @ArthurGoodman3

04/30/2020 at 07:45AM

14
#1074 - bladehaze / @bladehaze

05/04/2020 at 01:45AM

14
#1075 - Anay Karnik / @anay_karnik

05/08/2020 at 01:30PM

14
#1076 - Matt DB / @MattDB12

05/11/2020 at 08:39PM

14
#1077 - River Jiang / @riverjiang

05/13/2020 at 04:00AM

14
#1078 - whale / @Hari84444713

05/16/2020 at 08:22PM

14
#1079 - garry quested / @GQuested

05/24/2020 at 09:48AM

14
#1080 - 于吉星 / @fishermryn

05/25/2020 at 08:37AM