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
#1861 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 12:58PM

15
#1862 - Ray Dennis / @raysden

01/05/2021 at 03:26PM

15
#1863 - A A A / @37fatos

01/07/2021 at 02:55AM

15
#1864 - chocolate / @chocola81394123

01/08/2021 at 02:10AM

15
#1865 - soppeldynga / @soppeldynga

01/10/2021 at 09:12PM

15
#1866 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 12:19PM

15
#1867 - dsfdaaasdfasdfgsdfeasdf / @dsfdaaasdfasdf1

01/18/2021 at 06:27PM

15
#1868 - webx007 / @webx_007

06/19/2021 at 11:56PM

15
#1869 - naomi (forgetful functor) / @fixedpointfae

03/29/2022 at 02:34AM

15
#1870 - quemeraisc / @quemeraisc

05/16/2022 at 04:38PM

15
#1871 - かみひろ / @km_hr

02/18/2023 at 07:44AM

15
#1872 - philikarus / @philikarus

02/18/2024 at 08:43AM

15
#1873 - Hemram Kumarapu / @H4-MM-3R

09/21/2024 at 04:10PM

15
#1874 - Neix20 / @Neix20

09/26/2024 at 03:04AM

15
#1875 - Kumaran / @kumaran-14

12/07/2024 at 11:26PM

15
#1876 - thomasyang18 / @thomasyang18

05/16/2025 at 02:49AM

16
#1877 - Daniel Hernik / @danielhernik

05/15/2013 at 04:03PM

16
#1878 - Martin Lundberg / @marlun

05/15/2013 at 05:20PM

16
#1879 - Hans Peter / @sdermec

05/17/2013 at 12:55AM

16
#1880 - Daniel Lundin / @danielundin

05/17/2013 at 09:33AM

16
#1881 - 张文远 / @zhwenyuan

05/19/2013 at 03:55PM

16
#1882 - DOUG BLACK / @dougblackio

05/20/2013 at 09:00PM

16
#1883 - Kathryn / @hartknyx

05/21/2013 at 05:19AM

16
#1884 - zealotrush / @zealotrush

05/21/2013 at 06:21AM

16
#1885 - Sebastian Göttschkes / @Sgoettschkes

05/22/2013 at 07:18AM

16
#1886 - Eric Potter / @pottereric

05/24/2013 at 06:12PM

16
#1887 - Spencer Rogers / @spencer1248

05/25/2013 at 01:59AM

16
#1888 - Vinicius Souza / @vsouzas

05/30/2013 at 06:04PM

16
#1889 - Cam Peterson / @Cam_Peterson

05/31/2013 at 06:27PM

16
#1890 - Bryan Hoyle / @BryanHoyle

06/03/2013 at 01:56PM