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):
16
#2041 - Quota / @Quotad

01/10/2014 at 12:57PM

16
#2042 - Dan Mundy 4.0.0a / @exchgr

01/10/2014 at 03:20PM

16
#2043 - sbeaumont / @sbeaumont

01/14/2014 at 10:11PM

16
#2044 - eirc / @eirc

01/16/2014 at 03:41PM

16
#2045 - Josh Shepard / @_kingsley

01/18/2014 at 05:34AM

16
#2046 - _syseng_ / @_syseng_

01/20/2014 at 05:25PM

16
#2047 - π™ΌπšŠπšžπš›πš’πšŒπš’πš˜ / @mauodias

01/20/2014 at 11:52PM

16
#2048 - Pedro B. Coronel / @pbcoronel

01/28/2014 at 01:57AM

16
#2049 - Koen De Causmaecker / @KoenCaus

01/28/2014 at 07:30PM

16
#2050 - JoΓ£o Paiva / @jgpaiva

01/28/2014 at 07:57PM

16
#2051 - John Karlsson / @karlssonjohn

01/28/2014 at 09:18PM

16
#2052 - JΓ©rΓ©my Autran / @jjautran

01/28/2014 at 09:39PM

16
#2053 - JamesT / @jamestrinklein

01/29/2014 at 02:01AM

16
#2054 - Chris Ciulla / @chris_ciulla

01/29/2014 at 02:54AM

16
#2055 - rblakem / @rblakem

01/29/2014 at 03:20AM

16
#2056 - TerribleTrioJoe / @terribletriojoe

01/29/2014 at 10:14PM

16
#2057 - murmurs / @mrmrs_

01/29/2014 at 10:45PM

16
#2058 - Ilya / @lessapathetic

01/30/2014 at 12:14AM

16
#2059 - mattsalacain / @mattsalacain

01/30/2014 at 08:48PM

16
#2060 - kli / @klidev

02/02/2014 at 05:58PM

16
#2061 - SeΓ‘n Kelleher / @eZanmoto

02/02/2014 at 11:38PM

16
#2062 - Zack Ontiveros / @ZackOntiveros

02/03/2014 at 05:04AM

16
#2063 - Nikolay Frantsev / @Shutnik

02/03/2014 at 10:27AM

16
#2064 - Lance B / @HeyItsLanceB

02/03/2014 at 10:05PM

16
#2065 - β–šβ–žβ–œβ–›β–Ÿβ–“β–›β–œβ–‘β–™β–Ÿβ–’β–‹β–Œβ–Š / @null_radix

02/03/2014 at 11:15PM

16
#2066 - Nico Gevers / @gevious_

02/04/2014 at 07:29AM

16
#2067 - Kevin Thompson / @kevinthompson

02/05/2014 at 12:59AM

16
#2068 - Trevor Green / @trumpi

02/05/2014 at 09:18PM

16
#2069 - Kimel Doggy / @KimelDoggy

02/07/2014 at 11:50AM

16
#2070 - Kevin Disneur / @kdisneur

02/10/2014 at 07:15PM