People,

I have this in my vimrc:

        autocmd BufWritePost   *.rb         !chmod 770 %

but I would like to make the chmod conditional on the file NOT already currently being executable - do I need a function to do this?

Thanks,

Phil.
--
Philip Rhoades

GPO Box 3411
Sydney NSW      2001
Australia
E-mail:  [email protected]

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to