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

3969 active golfers, 12967 entries

Leaderboard (lowest score wins):
14
#1021 - Алексей Кашуба / @Alex_Kashuba

08/31/2019 at 08:30PM

14
#1022 - Iggy / @iggredible

09/04/2019 at 04:06AM

14
#1023 - Zach Ingbretsen / @ZIngbretsen

09/08/2019 at 11:54PM

14
#1024 - Andac Safa / @SanDForcE94

09/11/2019 at 11:17PM

14
#1025 - Abnermtj / @Abnerjr19

09/15/2019 at 02:29PM

14
#1026 - Cassandra / @kascein

09/17/2019 at 05:39AM

14
#1027 - Sebastian Müller / @echsberde

09/21/2019 at 01:53PM

14
#1028 - vimgolfer / @vimgolfer7

09/21/2019 at 03:28PM

14
#1029 - Honza Uhlík / @JanUhlik

09/22/2019 at 08:29AM

14
#1030 - Viktor Styrud / @ViktorStyrud

09/25/2019 at 01:32PM

14
#1031 - Adrian Craciun / @adi_craciun

09/27/2019 at 07:32PM

14
#1032 - IronTiger Park / @IrontigerP

10/11/2019 at 12:14AM

14
#1033 - Sam O'Malley / @Samuel_OMalley

10/12/2019 at 04:10AM

14
#1034 - KlondikeBaer / @BaerKlondike

10/14/2019 at 05:56PM

14
#1035 - Homo Ludens / @BsMainly

10/17/2019 at 02:55PM

14
#1036 - leo / @leo28356948

10/18/2019 at 04:46AM

14
#1037 - Ivan Volosyuk / @IvanVolosyuk

10/21/2019 at 10:45AM

14
#1038 - @soller@fosstodon.org / @jeremy_soller

10/25/2019 at 01:59AM

14
#1039 - vicver09 / @vicver091

10/28/2019 at 02:07PM

14
#1040 - Tokos Apos / @AposTokosapos

11/05/2019 at 11:08AM

14
#1041 - Chris Covert / @covertcj

11/07/2019 at 08:44PM

14
#1042 - harmony_krieg / @harmony_krieg

11/09/2019 at 12:15PM

14
#1043 - skamgolf / @skamgolf

11/10/2019 at 12:28AM

14
#1044 - shoji541 / @shoji541

11/10/2019 at 12:20PM

14
#1045 - Lei Kin / @kireinasorakin

11/12/2019 at 06:20PM

14
#1046 - Daniel Klepacki / @daniel_klepacki

11/14/2019 at 05:48PM

14
#1047 - shota_ogswr / @shota_ogasawara

11/24/2019 at 03:03PM

14
#1048 - Magnus Bjuvensjö / @mbjuvensjo

11/24/2019 at 11:01PM

14
#1049 - cínicoycansino / @pgv958

11/29/2019 at 09:50AM

14
#1050 - Hector Ricardo / @Hector_Ricardo3

12/03/2019 at 10:10PM