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

3977 active golfers, 12992 entries

Leaderboard (lowest score wins):
15
#1861 - Fabrizio Perria / @FPerria

12/22/2020 at 02:37PM

15
#1862 - Brian :| / @Seeemplicity

12/25/2020 at 05:36AM

15
#1863 - Jon Powers / @JonKPowers

12/27/2020 at 12:40PM

15
#1864 - Kapildev Neupane / @KapildevNeupane

01/01/2021 at 12:58PM

15
#1865 - Ray Dennis / @raysden

01/05/2021 at 03:26PM

15
#1866 - A A A / @37fatos

01/07/2021 at 02:55AM

15
#1867 - chocolate / @chocola81394123

01/08/2021 at 02:10AM

15
#1868 - soppeldynga / @soppeldynga

01/10/2021 at 09:12PM

15
#1869 - knobbelkesvlaai / @knobbelkesvlaai

01/13/2021 at 12:19PM

15
#1870 - dsfdaaasdfasdfgsdfeasdf / @dsfdaaasdfasdf1

01/18/2021 at 06:27PM

15
#1871 - webx007 / @webx_007

06/19/2021 at 11:56PM

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

03/29/2022 at 02:34AM

15
#1873 - quemeraisc / @quemeraisc

05/16/2022 at 04:38PM

15
#1874 - かみひろ / @km_hr

02/18/2023 at 07:44AM

15
#1875 - philikarus / @philikarus

02/18/2024 at 08:43AM

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

09/21/2024 at 04:10PM

15
#1877 - Neix20 / @Neix20

09/26/2024 at 03:04AM

15
#1878 - Kumaran / @kumaran-14

12/07/2024 at 11:26PM

15
#1879 - thomasyang18 / @thomasyang18

05/16/2025 at 02:49AM

15
#1880 - Fanteria / @Fanteria

10/04/2025 at 12:15PM

16
#1881 - Daniel Hernik / @danielhernik

05/15/2013 at 04:03PM

16
#1882 - Martin Lundberg / @marlun

05/15/2013 at 05:20PM

16
#1883 - Hans Peter / @sdermec

05/17/2013 at 12:55AM

16
#1884 - Daniel Lundin / @danielundin

05/17/2013 at 09:33AM

16
#1885 - 张文远 / @zhwenyuan

05/19/2013 at 03:55PM

16
#1886 - DOUG BLACK / @dougblackio

05/20/2013 at 09:00PM

16
#1887 - Kathryn / @hartknyx

05/21/2013 at 05:19AM

16
#1888 - zealotrush / @zealotrush

05/21/2013 at 06:21AM

16
#1889 - Sebastian Göttschkes / @Sgoettschkes

05/22/2013 at 07:18AM

16
#1890 - Eric Potter / @pottereric

05/24/2013 at 06:12PM