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

3991 active golfers, 13054 entries

Leaderboard (lowest score wins):
15
#1381 - Chase Lambert / @chasediscs

06/15/2014 at 10:24PM

15
#1382 - Edric Garran / @edric_garran

06/17/2014 at 09:47PM

15
#1383 - deadghost / @deadghosttt

06/22/2014 at 04:47AM

15
#1384 - Miguel R. Rubinos / @mrrubinos

06/22/2014 at 07:12PM

15
#1385 - Matt Carey / @matthewccarey

06/22/2014 at 10:13PM

15
#1386 - bXpjE4GzUfnPTRHes1mI / @5DQzMDKJs2VoVt

06/26/2014 at 04:26PM

15
#1387 - Théophile Wallez / @twallez

07/02/2014 at 09:41AM

15
#1388 - Alexey Permyakov / @AlexeyPermyakov

07/03/2014 at 05:38PM

15
#1389 - Michi Loro / @michiloro

07/08/2014 at 07:35AM

15
#1390 - Naoki Masuko / @nmasuko

07/12/2014 at 06:52AM

15
#1391 - RiccardoSven Risuleo / @riccardosven

07/15/2014 at 07:50PM

15
#1392 - Ando Jun / @anjun345

07/17/2014 at 12:05PM

15
#1393 - Dmitry Teslenko / @krab_mozga

07/18/2014 at 11:48AM

15
#1394 - Leon Moll / @MeonLoll

07/21/2014 at 02:44PM

15
#1395 - Mark / @mowen01

07/28/2014 at 05:41AM

15
#1396 - Slartibartfast / @S_Bartfast

07/28/2014 at 09:32AM

15
#1397 - Ryan / @murftown

07/29/2014 at 11:25PM

15
#1398 - madka / @lachrimae_pavan

08/03/2014 at 11:07AM

15
#1399 - Tonga / @ktonga

08/07/2014 at 09:06PM

15
#1400 - Dash / @DashJungle

08/09/2014 at 11:07PM

15
#1401 - Seth Rader / @f4uLT

08/12/2014 at 09:37PM

15
#1402 - Michael Stein / @4NickelSoftware

08/12/2014 at 11:32PM

15
#1403 - Pepe / @GomTvIneluki

08/14/2014 at 11:14PM

15
#1404 - Phil Runninger / @PhilRunninger

08/15/2014 at 01:25PM

15
#1405 - booom / @ateukme

08/17/2014 at 10:03PM

15
#1406 - Johan Helsing / @jkhelsing

08/23/2014 at 02:23PM

15
#1407 - Alan Kessler / @alankesslr

08/27/2014 at 04:58PM

15
#1408 - Weijun He / @hewjun

08/31/2014 at 01:42AM

15
#1409 - Mundi / @MarcusMundi

09/14/2014 at 03:52PM

15
#1410 - Michael Wang / @micwang6

09/14/2014 at 07:37PM