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

3970 active golfers, 12969 entries

Leaderboard (lowest score wins):
15
#1741 - Crystal L / @Cartsly

07/13/2019 at 11:13PM

15
#1742 - Neil Struthers / @struthersneil

07/16/2019 at 06:02PM

15
#1743 - Joe Fahnestock🌵 / @Joecupojoe

07/23/2019 at 03:03PM

15
#1744 - Matt Vaughn / @mattttvaughn

07/29/2019 at 03:24AM

15
#1745 - Colby Brown / @colbyabrown

07/30/2019 at 03:28PM

15
#1746 - Bob Ren / @bobrenjc93

08/03/2019 at 08:42PM

15
#1747 - sooqua / @sooqua

08/08/2019 at 11:02AM

15
#1748 - André Reigoto / @AndreReigoto

08/11/2019 at 03:48AM

15
#1749 - Adam Hartz / @awareofnow

08/21/2019 at 02:22AM

15
#1750 - Marco💾 / @markomannux

08/25/2019 at 02:20PM

15
#1751 - おせよ / @OhSayYo

09/21/2019 at 01:04AM

15
#1752 - Brandon Harrison / @llAboutB

09/24/2019 at 04:41PM

15
#1753 - Miko / @_m_ik_o_

09/26/2019 at 03:14PM

15
#1754 - Matyáš Křišťan / @matyk9

09/27/2019 at 03:19PM

15
#1755 - alex m / @al_mk_

09/27/2019 at 06:17PM

15
#1756 - Rui Xue / @ruirayxue

10/01/2019 at 01:57AM

15
#1757 - Kracejic / @kracejic

10/08/2019 at 10:26AM

15
#1758 - Chen-Hung Wu / @utah12005

10/12/2019 at 01:09PM

15
#1759 - dissect-ctu / @DissectC

10/17/2019 at 06:50PM

15
#1760 - roemermeier / @roemermeier

10/18/2019 at 04:59PM

15
#1761 - Jonathan Medwig / @jmedwig

10/21/2019 at 01:54PM

15
#1762 - hackday / @yupi0

10/24/2019 at 11:00AM

15
#1763 - Gregory Furter / @gfurter

10/27/2019 at 09:56PM

15
#1764 - Lory / @Lory46845742

10/31/2019 at 03:26PM

15
#1765 - Alex Emelianov / @AlexEmelianov3

11/02/2019 at 11:35PM

15
#1766 - fewfold / @fewfold

11/06/2019 at 02:47AM

15
#1767 - Melvin Cheung / @MelvinCheung

11/07/2019 at 06:13PM

15
#1768 - Ebi / @ehan6

11/10/2019 at 01:04PM

15
#1769 - 周之越 / @zhiyue_zhou

11/11/2019 at 06:41AM

15
#1770 - mogitate / @mutemeat

11/16/2019 at 07:45AM