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 5b6f0fcba89379000c2328a4

Swap values inside brackets

Easy challenge.

Start file
#Everyday routine... :\ 

amazing_func("Some amazing text", 123, variable) # Kittens

def func():
	return 'Stuff for making movement harder'

def func2(m):
	v = 0
	for i in range(10):
		v += i*m
		print(v, i, m)

very_strange_func(42, foobar, 'Another text') # Dogs

test = func()
func2(len(test))
End file
#Everyday routine... :\ 

amazing_func(42, foobar, 'Another text') # Kittens

def func():
	return 'Stuff for making movement harder'

def func2(m):
	v = 0
	for i in range(10):
		v += i*m
		print(v, i, m)

very_strange_func("Some amazing text", 123, variable) # Dogs

test = func()
func2(len(test))

View Diff

3c3
< amazing_func("Some amazing text", 123, variable) # Kittens
---
> amazing_func(42, foobar, 'Another text') # Kittens
14c14
< very_strange_func(42, foobar, 'Another text') # Dogs
---
> very_strange_func("Some amazing text", 123, variable) # Dogs

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 43 remaining solutions by signing in and submitting your own entry
#44 maxime he / @he_maxime - Score: 86 - 08/12/18 @ 19:05
jjjlkllllllllllllll;"qdi(:regi<Tab><CR>jjjjjjjjjjjllllll"wdi(h;"qpkkkkkkkkkkkhhhhhhhhhhh"wpZZ

0 comments


Created by: @Tpouhuk2

44 active golfers, 151 entries

Leaderboard (lowest score wins):
15
#1 - Jon Krause / @jkrause314

08/11/2018 at 05:14PM

15
#2 - Kerson Hsiao / @KersonHsiao

08/12/2018 at 12:47AM

15
#3 - Smylers / @Smylers2

08/12/2018 at 08:54PM

15
#4 - Saki Gw / @Sakigw

08/13/2018 at 06:23AM

15
#5 - John Braxler / @braxler

08/13/2018 at 12:10PM

15
#6 - Charles Sun / @charles_sun90

08/13/2018 at 09:48PM

15
#7 - testingvimgolf / @testingvimgolf

08/14/2018 at 03:20AM

15
#8 - Keldwik Chaldain / @Suskeyhose

08/14/2018 at 07:59PM

15
#9 - 徐学健 / @zebrallel

08/15/2018 at 01:58AM

15
#10 - Søren Kjeil / @sfkjeil

08/15/2018 at 09:09AM

15
#11 - Simon Ingelsson / @_DeVVaN_

08/15/2018 at 12:19PM

15
#12 - Andre Cato / @DreBear800

08/18/2018 at 01:19AM

15
#13 - Артем Мухометзянов / @Timon_Surikat

08/18/2018 at 02:32PM

15
#14 - Rajesh Sharma / @deepredsky

08/18/2018 at 05:35PM

15
#15 - Sergio / @voyeg3r

08/19/2018 at 03:29PM

15
#16 - 🌀🦋Miriam Retka🦋🌀 / @miriamretka

08/19/2018 at 08:43PM

16
#17 - Ítalo Vieira / @italoviieira

08/12/2018 at 01:04AM

16
#18 - Marco Magdy / @marcomcdee

08/12/2018 at 05:29PM

16
#19 - PCS Solutions / @PeteSolutions

08/13/2018 at 06:15AM

16
#20 - wes / @_weslly

08/14/2018 at 05:19AM

16
#21 - Valacar / @valacar

08/15/2018 at 03:28PM

16
#22 - Alexander Zheleznov / @ephemerr

08/16/2018 at 06:17AM

16
#23 - no hodls barred / @AssafLavie

08/16/2018 at 02:51PM

17
#24 - Oka / @the_white_oak

08/11/2018 at 04:51PM

17
#25 - _Tpouhuk / @Tpouhuk2

08/11/2018 at 05:29PM

17
#26 - Jan Bundesmann / @janbundesmann

08/13/2018 at 08:59AM

18
#27 - Dr Rev J. '𝕵. 𝕶𝖎𝖗𝖈𝖍𝖆𝖗𝖙𝖟' Kirchartz / @JKirchartz

08/19/2018 at 05:42PM

19
#28 - h43z / @h43z

08/11/2018 at 11:23PM

19
#29 - yqu212 / @yqu212

08/12/2018 at 01:47AM

19
#30 - Parrot Tech / @parrot_tech

08/13/2018 at 07:46AM