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 50ed6ac0c0e3aa0002000003

Coordinates placeholder

Place coordinates instead of target search.

Start file
test bla test test
test test
End file
1,1
10,1
15,1
1,2
6,2

View Diff

1,2c1,5
< test bla test test
< test test
---
> 1,1
> 10,1
> 15,1
> 1,2
> 6,2

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 33 remaining solutions by signing in and submitting your own entry
#34 Asmund / @herrasbe - Score: 56 - 01/09/13 @ 20:44
j$qq?\<t<CR>ce<C-R>=getpos('.')<CR><BS><Esc>q4@q:g/^0/d<CR>qqkJxDPa,<Esc>kq4@qZZ

@Asmund_L: Not very short, but it was fun to use getpos()

@runarfu: Amazing! Maybe it could be a winner if @uzver submitted a much larger problem instance?

2 comments


Created by: @uzver

34 active golfers, 56 entries

Leaderboard (lowest score wins):
27
#31 - Niil Öhlin / @Niil94

03/04/2013 at 09:21PM

27
#32 - Mr_Djez / @DjezMr

08/18/2019 at 05:10AM

51
#33 - Matt / @mcr05

11/25/2014 at 11:38AM

56
#34 - Asmund / @herrasbe

01/09/2013 at 08:44PM