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

3979 active golfers, 13005 entries

Leaderboard (lowest score wins):
15
#1771 - Melvin Cheung / @MelvinCheung

11/07/2019 at 06:13PM

15
#1772 - Ebi / @ehan6

11/10/2019 at 01:04PM

15
#1773 - 周之越 / @zhiyue_zhou

11/11/2019 at 06:41AM

15
#1774 - mogitate / @mutemeat

11/16/2019 at 07:45AM

15
#1775 - bassnecter / @lothedr

11/23/2019 at 04:04PM

15
#1776 - oldandslow / @oldandslow5

11/29/2019 at 06:36PM

15
#1777 - Vim Player / @PlayerVim

11/30/2019 at 09:15AM

15
#1778 - Lion de Bell / @CLGBamboo

11/30/2019 at 11:38PM

15
#1779 - David / @dalbertom

12/01/2019 at 09:39PM

15
#1780 - zigford / @zigford_org

12/06/2019 at 11:30AM

15
#1781 - HypoTech / @Obongoetco

12/08/2019 at 11:29AM

15
#1782 - Καράτε Μόνο / @karate_mono

12/13/2019 at 04:05PM

15
#1783 - Dan Kilman / @dan_kilman

12/18/2019 at 09:02PM

15
#1784 - James Casey / @hanavi

12/21/2019 at 03:09AM

15
#1785 - hokonch / @hokonch

12/24/2019 at 01:10AM

15
#1786 - Delon / @delonleonard

12/25/2019 at 03:19AM

15
#1787 - None / @sh1chuang

12/30/2019 at 01:01PM

15
#1788 - Scott Smith / @Scottaino

01/06/2020 at 07:02PM

15
#1789 - nicosierra / @nicosierra84

01/09/2020 at 10:04PM

15
#1790 - lev / @nouvelliu

01/14/2020 at 01:23AM

15
#1791 - Karnival K / @K4rnival

01/15/2020 at 07:47PM

15
#1792 - meow / @xckodut

01/18/2020 at 12:27AM

15
#1793 - Jean-Francois Parent / @hacker_pyrat

01/19/2020 at 03:05AM

15
#1794 - Thomas Jung / @ThomasAJung

01/21/2020 at 10:34AM

15
#1795 - Michael Meixner / @meixner62

01/22/2020 at 01:35PM

15
#1796 - Renns / @Renns95250521

02/09/2020 at 10:00AM

15
#1797 - stretchy / @stretch11013132

02/16/2020 at 04:13PM

15
#1798 - KingYames / @JamesZeHunter

02/17/2020 at 03:50AM

15
#1799 - perTheGolfer / @GolferPer

02/17/2020 at 08:24PM

15
#1800 - TimMcGuire / @mcguire

02/17/2020 at 11:09PM