Re: Does vimscript have a "stat()" command?

2016-03-29 Thread Charles E Campbell
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

Re: Does vimscript have a "stat()" command?

2016-03-29 Thread Josef Fortier
> 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

Re: Does vimscript have a "stat()" command?

2016-03-28 Thread Nikolay Aleksandrovich Pavlov
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

Does vimscript have a "stat()" command?

2016-03-28 Thread 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 file owner. I'm likely missing something, but I've not found it yet. Is