1. Randy Stauner
  2. vimrc

Commits

Randy Stauner  committed b862d2c

Use built-in function rather than shell for mkdir -p

  • Participants
  • Parent commits a864bff
  • Branches master

Comments (0)

Files changed (1)

File vimrc

View file
  • Ignore whitespace
 command WN wN
 command Args args
 command -nargs=? -complete=dir -complete=file Sp sp <args>
-command Mkpath !mkdir -p %:h
-command MkPath Mkpath
+
+command! Mkpath call mkdir(expand("%:h"), 'p')
 
 command EightyCharacters call MaxLineLength(80)
 command -nargs=? MaxLineLength call MaxLineLength(<args>)