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
#1801 - 薛浩滎 / @iTPChbTeI4ZW9s3

03/17/2020 at 05:29AM

15
#1802 - Ryan Nevius / @ryannevius

03/17/2020 at 07:34PM

15
#1803 - Vim Türkçe / @vimturkce

03/18/2020 at 12:51PM

15
#1804 - vvaannaa3 / @vvaannaa3

03/21/2020 at 10:40PM

15
#1805 - Oleg / @colega

03/22/2020 at 03:20PM

15
#1806 - BnnGolfer / @BnnGolfer

03/22/2020 at 10:20PM

15
#1807 - koyumeishi / @koyumeishi_

03/27/2020 at 07:46PM

15
#1808 - Nathan Hartman / @hnathan918

04/02/2020 at 07:33PM

15
#1809 - RaylanFox / @RaylanFox

04/08/2020 at 03:52PM

15
#1810 - Kelvin Meyer / @Kelvin_Meyer15

04/10/2020 at 08:27AM

15
#1811 - ErQ325 / @EQ325

04/21/2020 at 02:14PM

15
#1812 - Zachary Lee / @abstractlyZach

04/25/2020 at 05:09PM

15
#1813 - せいほう / @FICSQF

04/26/2020 at 01:46AM

15
#1814 - Wesley Runnels / @wesleyrunnels

04/28/2020 at 03:52PM

15
#1815 - Seve / @Seve_py

05/04/2020 at 06:24AM

15
#1816 - Daniel Urzica / @revealer_dan

05/04/2020 at 08:14PM

15
#1817 - Bspammer / @Bspammer

05/07/2020 at 06:36PM

15
#1818 - Neil Earnshaw / @neilearnshaw

05/09/2020 at 08:40PM

15
#1819 - iBhagwan / @iiBhagwan

05/11/2020 at 06:31AM

15
#1820 - Jeff Cui / @jeffacce

05/12/2020 at 08:13AM

15
#1821 - Christophe Robillard / @krichtof

05/13/2020 at 05:21PM

15
#1822 - Kevin Keefe / @KevinKeefe5

05/17/2020 at 05:24PM

15
#1823 - Sven Kõiv / @KoivSven

05/23/2020 at 06:12PM

15
#1824 - RockerZZY / @rocker_zzy

05/27/2020 at 01:05PM

15
#1825 - Bob Streams / @BobStreams1

06/01/2020 at 08:03PM

15
#1826 - Romain / @djizeuscoco

06/15/2020 at 08:03AM

15
#1827 - smlbrngr / @smlbrngr

06/15/2020 at 01:46PM

15
#1828 - 店長 / @_shop_one

06/28/2020 at 08:35AM

15
#1829 - mocihan / @mocihan

06/29/2020 at 01:29AM

15
#1830 - JLObject / @powful_panda

07/01/2020 at 08:20PM