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 by @l0f4r0:

Unlock 17 remaining solutions by signing in and submitting your own entry
Created by: @Tpouhuk2

579 active golfers, 2496 entries

Solutions by @l0f4r0:
14
#89 - JL T / @l0f4r0

07/23/2020 at 07:12PM

14
#>89 - JL T / @l0f4r0

07/23/2020 at 07:13PM

14
#>89 - JL T / @l0f4r0

07/23/2020 at 07:13PM

15
#>204 - JL T / @l0f4r0

07/23/2020 at 07:11PM

16
#>268 - JL T / @l0f4r0

07/23/2020 at 07:10PM

17
#>312 - JL T / @l0f4r0

07/23/2020 at 07:10PM

18
#>348 - JL T / @l0f4r0

07/23/2020 at 07:09PM

19
#>381 - JL T / @l0f4r0

07/23/2020 at 07:09PM

20
#>412 - JL T / @l0f4r0

07/23/2020 at 07:08PM

21
#>435 - JL T / @l0f4r0

07/23/2020 at 07:06PM

22
#>453 - JL T / @l0f4r0

07/23/2020 at 07:04PM

25
#>512 - JL T / @l0f4r0

07/23/2020 at 07:02PM

30
#>542 - JL T / @l0f4r0

07/23/2020 at 07:08PM

31
#>546 - JL T / @l0f4r0

07/23/2020 at 07:11PM

39
#>562 - JL T / @l0f4r0

07/23/2020 at 07:01PM

46
#>567 - JL T / @l0f4r0

07/23/2020 at 06:57PM

54
#>570 - JL T / @l0f4r0

07/23/2020 at 06:59PM