Shebang : Make executable by setting the correct shebang and executable bit
| script karma
Downloaded by 675
Comments, bugs, improvements
|This script tries to reduce the repetitive work it is to make a file executable. It provides three functions:
SetShebang() which sets the correct shebang (e.g. "#!/usr/bin/python"),
SetExecutableBit() which sets the executable bit, and
SetExecutable() which calls the two functions above.
The SetExecutableBit() is simply stolen from http://vim.wikia.com/wiki/Setting_file_attributes_without_reloading_a_buffer . Thanks a lot Max Ischenko!
|Put this file in your .vim/plugin folder and map a key to call SetExecutable. For example, in my vimrc, I have
map <leader>X :w<CR>:call SetExecutable()<CR>
Rating scripts is only available on the
script versions (upload new version)
Click on the package to download.
ip used for rating: 126.96.36.199