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 @quemeraisc:

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

155 active golfers, 879 entries

Solutions by @quemeraisc:
31
#27 - quemeraisc / @quemeraisc

11/25/2020 at 02:09PM

33
#>37 - quemeraisc / @quemeraisc

11/25/2020 at 01:53PM

34
#>46 - quemeraisc / @quemeraisc

11/25/2020 at 01:48PM

35
#>47 - quemeraisc / @quemeraisc

11/25/2020 at 01:35PM

37
#>49 - quemeraisc / @quemeraisc

11/25/2020 at 01:21PM

39
#>59 - quemeraisc / @quemeraisc

11/25/2020 at 11:20AM

40
#>60 - quemeraisc / @quemeraisc

11/25/2020 at 11:15AM

43
#>68 - quemeraisc / @quemeraisc

11/25/2020 at 11:08AM

45
#>76 - quemeraisc / @quemeraisc

11/25/2020 at 10:27AM

46
#>88 - quemeraisc / @quemeraisc

11/25/2020 at 10:12AM

53
#>106 - quemeraisc / @quemeraisc

11/25/2020 at 09:51AM

54
#>112 - quemeraisc / @quemeraisc

11/20/2020 at 03:25PM

61
#>126 - quemeraisc / @quemeraisc

11/20/2020 at 03:08PM