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

Aliases for cd

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

Start file
alias c.='cd ..'
End file
alias c.='cd ..'
alias c..='cd ../..'
alias c...='cd ../../..'
alias c....='cd ../../../..'
alias c.....='cd ../../../../..'

alias c1='cd ..'
alias c2='cd ../..'
alias c3='cd ../../..'
alias c4='cd ../../../..'
alias c5='cd ../../../../..'

View Diff

1a2,11
> alias c..='cd ../..'
> alias c...='cd ../../..'
> alias c....='cd ../../../..'
> alias c.....='cd ../../../../..'
> 
> alias c1='cd ..'
> alias c2='cd ../..'
> alias c3='cd ../../..'
> alias c4='cd ../../../..'
> alias c5='cd ../../../../..'

Solutions by @robbertoe:

Unlock 9 remaining solutions by signing in and submitting your own entry
Created by: @rax0m

150 active golfers, 849 entries

Solutions by @robbertoe:
35
#45 - Robber Toe / @robbertoe

02/06/2020 at 03:38AM

37
#>47 - Robber Toe / @robbertoe

02/06/2020 at 03:27AM

39
#>55 - Robber Toe / @robbertoe

02/06/2020 at 03:18AM

40
#>57 - Robber Toe / @robbertoe

02/06/2020 at 03:09AM

42
#>62 - Robber Toe / @robbertoe

02/06/2020 at 03:05AM

45
#>68 - Robber Toe / @robbertoe

02/06/2020 at 02:58AM

48
#>92 - Robber Toe / @robbertoe

02/06/2020 at 02:17AM

50
#>97 - Robber Toe / @robbertoe

02/06/2020 at 02:14AM

51
#>98 - Robber Toe / @robbertoe

02/06/2020 at 02:08AM