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

3403 active golfers, 10932 entries

Leaderboard (lowest score wins):
25
#3241 - Christopher Wells / @ExcaliburZero_Z

12/06/2015 at 09:05PM

25
#3242 - Kevin Gisi / @cheerskevin

02/22/2016 at 09:07AM

25
#3243 - OlivierLi / @LiZhongSin

11/17/2016 at 02:13PM

25
#3244 - Austin Ray / @austospumanto

04/14/2017 at 10:02AM

25
#3245 - Doug Chan / @Coufu

04/28/2017 at 04:47PM

25
#3246 - Marc Hunter / @MrMarcHunter

08/05/2017 at 08:58PM

25
#3247 - Herr Joschka / @HerrJoschka

10/22/2017 at 05:38AM

25
#3248 - Spacesh1p / @spacesh1pdev

01/03/2018 at 06:55AM

25
#3249 - eddie leon / @_eddie_leon

01/25/2018 at 03:46PM

25
#3250 - Amanj Sherwany / @amanjpro

03/04/2018 at 08:19PM

25
#3251 - Hugo / @szeyattai

08/17/2018 at 07:42AM

25
#3252 - Bruce Adams / @bruceadams1054

10/06/2018 at 10:09AM

25
#3253 - Gustavo Almeida / @gustaalmeidaws

11/04/2018 at 08:11PM

25
#3254 - throwaway / @throwaw77650361

03/05/2019 at 07:40PM

25
#3255 - R / @rvan123

05/01/2019 at 04:49AM

26
#3256 - Josh Vinson / @zyxwyvu

07/02/2013 at 06:40PM

26
#3257 - jmpak / @jmpak

08/07/2013 at 03:06PM

26
#3258 - Ban / @Rheriel

10/22/2013 at 01:47PM

26
#3259 - Colin DeCarlo / @colindecarlo

11/15/2013 at 03:07AM

26
#3260 - Kevin Curtin / @KCurtin

12/17/2013 at 03:04PM

26
#3261 - oujingwen / @oujingwen

12/19/2013 at 08:46AM

26
#3262 - Joel Calado / @jcalado

02/02/2014 at 08:22PM

26
#3263 - Levi / @thatguylevi

02/04/2014 at 08:45PM

26
#3264 - AZ / @lazywithclass

02/24/2014 at 09:18PM

26
#3265 - Chris Davison / @davisonnn

05/24/2014 at 11:18PM

26
#3266 - robby bustle / @bobbyrussa

05/29/2014 at 04:24AM

26
#3267 - Johannes Rubenz / @j_rubenz

11/06/2014 at 03:26PM

26
#3268 - manish mishra / @manishrdmishra

01/12/2015 at 11:45PM

26
#3269 - Ilker Mutlu / @ilkermutlu

04/01/2015 at 02:25PM

26
#3270 - Edgard Leal / @EdgardLeal

05/25/2016 at 02:01PM