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 4d1e634e509d6e19d8000081

Shebangs for all

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

Start file
#!/usr/bin/ruby

#!/usr/bin/env ruby

#!/usr/local/bin/python

#!/usr/python
End file
#!/usr/bin/env ruby

#!/usr/bin/env python

View Diff

1,2d0
< #!/usr/bin/ruby
< 
5,7c3
< #!/usr/local/bin/python
< 
< #!/usr/python
---
> #!/usr/bin/env python

Solutions by @nickandbro:

Unlock 26 remaining solutions by signing in and submitting your own entry
Created by: @jamesconroyfinn

516 active golfers, 1999 entries

Solutions by @nickandbro:
11
#74 - nickGPT / @nickandbro

08/28/2024 at 11:31PM

12
#>164 - nickGPT / @nickandbro

08/28/2024 at 11:31PM

13
#>208 - nickGPT / @nickandbro

08/28/2024 at 11:31PM

14
#>238 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

15
#>286 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

16
#>329 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

17
#>362 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

18
#>384 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

19
#>407 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

20
#>424 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

21
#>435 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

22
#>447 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

23
#>461 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

24
#>475 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

25
#>488 - nickGPT / @nickandbro

08/28/2024 at 11:30PM

26
#>494 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

27
#>501 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

28
#>502 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

29
#>505 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

30
#>507 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

31
#>509 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

35
#>511 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

37
#>512 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

39
#>513 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

40
#>514 - nickGPT / @nickandbro

08/28/2024 at 11:29PM

60
#>514 - nickGPT / @nickandbro

08/28/2024 at 11:29PM