ahw / vim-hooks

Easily hook shell scripts into Vim autocmd events.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chmod: No such file or directory

ahw opened this issue · comments

  1. vim ~/Desktop/scratch.js
  2. Edit file
  3. :CreateSelfHook BufWritePost
  4. The plugin attempts to run chmod u+x ./scratch.js when it should be running chmod u+x ~/Desktop/scratch.js. It fails because ./scratch.js doesn't exist
"Desktop/scratch.js" 323L, 10027C written
[vim-hooks] Could not execute script ./scratch.js because it does not have "execute" permissions.
Set executable bit (chmod u+x) [yn]?
[vim-hooks] Running chmod u+x ./scratch.js
:!chmod u+x ./scratch.js
chmod: ./scratch.js: No such file or directory

shell returned 1
[vim-hooks] Could not execute script ./scratch.js because it does not have "execute" permissions.