I want to run a VIM command only on loading of executable files (specifically, what I want, is to add a button to the menu bar, that will run the script, aka call :!%
)
The question, of course is for non-windows based systems (like linux), where I cannot tell if a file is executable by its name (but by running ls -l
)
Is there a way to do it with autocmd? Or any other way?