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

3533 active golfers, 11363 entries

Leaderboard (lowest score wins):
21
#3061 - Jimmy McRascal / @JimmyMcRascal

07/10/2014 at 01:14AM

21
#3062 - Alex / @ninjabassist777

07/31/2014 at 02:34PM

21
#3063 - Alexander Yermakov / @Mannavard

08/02/2014 at 08:24AM

21
#3064 - JonathanStarnes / @JON_STARNES

08/08/2014 at 02:07AM

21
#3065 - Tj / @yrddy

08/13/2014 at 05:22AM

21
#3066 - Yariv / @yarivb

08/17/2014 at 01:30PM

21
#3067 - Dr4k3 / @Dr4k3_LE

08/26/2014 at 07:50PM

21
#3068 - Ryo Sakikawa / @ryosakikawa

09/17/2014 at 04:40AM

21
#3069 - Nick Johnstone / @widdnz

09/24/2014 at 04:38AM

21
#3070 - Vincent Yu / @vyuniverse

10/15/2014 at 04:19AM

21
#3071 - Anton Geraschenko / @geraschenko

10/20/2014 at 03:04AM

21
#3072 - Iany / @grayhatdogfish

10/21/2014 at 06:55AM

21
#3073 - Ryan Glassett / @rollsavager

10/22/2014 at 04:29PM

21
#3074 - Steve Lazaridis / @SteveLazaridis

11/03/2014 at 04:20PM

21
#3075 - Thomas Moulia / @jtmoulia

11/07/2014 at 06:13AM

21
#3076 - Kedar / @0xKD

11/10/2014 at 03:58PM

21
#3077 - Frank Zhang / @njzyf

12/23/2014 at 08:21PM

21
#3078 - Rob / @robban1324

01/07/2015 at 07:39AM

21
#3079 - makohoek / @MattijsKorp

01/08/2015 at 12:19PM

21
#3080 - Željko Nešić / @poparasan

01/09/2015 at 01:45PM

21
#3081 - Thomson Tan / @acccel

01/09/2015 at 02:27PM

21
#3082 - m1r4ge / @m1r4ge_ror

01/19/2015 at 08:58PM

21
#3083 - Алина Михалькова / @smertskosoi1

01/26/2015 at 02:10PM

21
#3084 - Ducky / @MegaDucky9000

02/03/2015 at 03:20PM

21
#3085 - Константин Кочнев / @kostya_white

02/11/2015 at 09:46AM

21
#3086 - Алексанр Цыганков / @capybarov

02/16/2015 at 02:23PM

21
#3087 - Boon-Hau Teh / @boondigo

02/27/2015 at 06:13PM

21
#3088 - Yuan Guan / @yuanguan89

02/28/2015 at 02:09AM

21
#3089 - vimgolf / @neovimp

03/04/2015 at 06:23PM

21
#3090 - Mickael Le Gal / @mickaellegal

03/29/2015 at 12:14PM