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

3532 active golfers, 11357 entries

Leaderboard (lowest score wins):
23
#3271 - Christopher Sipes / @Chris_Sipes

04/16/2016 at 07:15AM

23
#3272 - Michael Dykman / @MichaelDykman

04/28/2016 at 02:59PM

23
#3273 - Denys Zadorozhnyi / @greenden

06/14/2016 at 04:56PM

23
#3274 - Keith Rogers / @keirog

10/22/2016 at 04:58PM

23
#3275 - Aurélien Hervé / @aurel_herve

04/19/2017 at 03:46PM

23
#3276 - Juho Härme / @jharme

05/22/2017 at 08:45PM

23
#3277 - Bhatta Sushmith / @bsushmith

08/25/2017 at 08:56PM

23
#3278 - Scott Kidder / @scottkidder

11/09/2017 at 10:15PM

23
#3279 - Andrew Davis / @AndrewD14539793

01/28/2018 at 05:06AM

23
#3280 - Infinity Delta / @InfinityDelta

01/28/2018 at 04:48PM

23
#3281 - 이규승 / @IAHvPQrHVoh21zG

06/29/2018 at 08:39AM

23
#3282 - beew71493 / @beew71493

12/16/2018 at 10:11PM

23
#3283 - jenna why do i have to make this / @jenna_have

10/23/2019 at 11:39PM

23
#3284 - ENSORIZATION / @ensorization

11/01/2019 at 08:26PM

24
#3285 - Zsolt Botykai / @botykai_zsolt

05/15/2013 at 08:07AM

24
#3286 - Bastien Murzeau / @b_a_s_t_i_e_n

05/29/2013 at 07:15AM

24
#3287 - Andre Herrera / @andreherrera_a

06/02/2013 at 07:01AM

24
#3288 - deroguerre / @DeroguerreGui

06/07/2013 at 03:19PM

24
#3289 - Angus Fletcher / @angusiguess

06/26/2013 at 06:51PM

24
#3290 - Jan Wedekind / @wedesoft

07/05/2013 at 10:23AM

24
#3291 - Origen Theologian / @0rig3n

07/29/2013 at 09:36PM

24
#3292 - hiroaki yasutomo / @kaminaly

09/05/2013 at 01:43AM

24
#3293 - Francesco Negri / @dhinus

09/17/2013 at 10:22AM

24
#3294 - Pedro Coca / @dtrms

10/04/2013 at 08:32AM

24
#3295 - Steven Schalhorn / @Unmensch

10/05/2013 at 12:26PM

24
#3296 - Rob McVey / @robmcvizzle

10/11/2013 at 12:23PM

24
#3297 - dickbutt / @ryan_haynes

10/24/2013 at 09:54PM

24
#3298 - José Maurinho / @Jose_Maurinho

10/27/2013 at 09:16PM

24
#3299 - xavier ps / @xavierpsdev

10/29/2013 at 10:39AM

24
#3300 - Zakaria / @KODOQUE

11/02/2013 at 09:04PM