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

3904 active golfers, 12678 entries

Leaderboard (lowest score wins):
15
#1321 - wizardwerdna / @wizardwerdna

05/13/2014 at 11:35PM

15
#1322 - Zapata / @Incredible_JFP

05/21/2014 at 04:16PM

15
#1323 - CDRdude / @CDRdude

05/22/2014 at 06:09AM

15
#1324 - A / @Tower_1980

05/28/2014 at 11:07AM

15
#1325 - Nick Chambers / @fatnickc

05/30/2014 at 10:24PM

15
#1326 - Steffen Siering / @ursobln

06/02/2014 at 10:23PM

15
#1327 - Stephen / @StephenPek

06/06/2014 at 01:23PM

15
#1328 - Denis H. / @denis_h_

06/07/2014 at 11:43PM

15
#1329 - Brad DeShong / @braddeshong

06/11/2014 at 12:21AM

15
#1330 - kwa / @kwa129

06/14/2014 at 07:44AM

15
#1331 - Chase Lambert / @chasediscs

06/15/2014 at 10:24PM

15
#1332 - Edric Garran / @edric_garran

06/17/2014 at 09:47PM

15
#1333 - deadghost / @deadghosttt

06/22/2014 at 04:47AM

15
#1334 - Miguel R. Rubinos / @mrrubinos

06/22/2014 at 07:12PM

15
#1335 - Matt Carey / @matthewccarey

06/22/2014 at 10:13PM

15
#1336 - bXpjE4GzUfnPTRHes1mI / @5DQzMDKJs2VoVt

06/26/2014 at 04:26PM

15
#1337 - Théophile Wallez / @twallez

07/02/2014 at 09:41AM

15
#1338 - Alexey Permyakov / @AlexeyPermyakov

07/03/2014 at 05:38PM

15
#1339 - Michi Loro / @michiloro

07/08/2014 at 07:35AM

15
#1340 - Naoki Masuko / @nmasuko

07/12/2014 at 06:52AM

15
#1341 - RiccardoSven Risuleo / @riccardosven

07/15/2014 at 07:50PM

15
#1342 - Ando Jun / @anjun345

07/17/2014 at 12:05PM

15
#1343 - Dmitry Teslenko / @krab_mozga

07/18/2014 at 11:48AM

15
#1344 - Leon Moll / @MeonLoll

07/21/2014 at 02:44PM

15
#1345 - Mark / @mowen01

07/28/2014 at 05:41AM

15
#1346 - Slartibartfast / @S_Bartfast

07/28/2014 at 09:32AM

15
#1347 - Ryan / @murftown

07/29/2014 at 11:25PM

15
#1348 - madka / @lachrimae_pavan

08/03/2014 at 11:07AM

15
#1349 - Tonga / @ktonga

08/07/2014 at 09:06PM

15
#1350 - Dash / @DashJungle

08/09/2014 at 11:07PM