Josef Fortier wrote:
>> I can suggest using filewritable()
> Thanks! This works well
> (FWIW I'm using filereadable() followed by filewriteable() to avoid no file
> conditions).
>
Depending on what you're doing, you also might want to use isdirectory().
Regards,
Chip Campbell
--
--
You
> I can suggest using filewritable()
Thanks! This works well
(FWIW I'm using filereadable() followed by filewriteable() to avoid no file
conditions).
--
--
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
2016-03-28 22:36 GMT+03:00 Josef Fortier :
> I'm looking to automatically invoke the (tpope or chrisbra) "SudoEdit"
> function when the file is root owned. I've set up a call to (unixland) "stat"
> via systemlist() but it seems like vimscript should be able to find the
I'm looking to automatically invoke the (tpope or chrisbra) "SudoEdit" function
when the file is root owned. I've set up a call to (unixland) "stat" via
systemlist() but it seems like vimscript should be able to find the file owner.
I'm likely missing something, but I've not found it yet. Is