Hello,

in our environment we implemented nfs4acls (zfsacls), with acl
inheritance and aclmode restrictions.
So the owner of a file is allowed to modify and delete her files, but
not to change the file's mode.
While classic vi doesn't have any problems with that, vim is spaming
direcoties with swap and inter-mod files. Apparently, if any chmod (for
swap files or inter-mod files) failed, these files won't be deleted
afterwards.
Is there a workorround? Is the problem known at all?

In my opinion there's a related problem with the "nomodifiable" option.
Although set, vim creates a swap file.
There are directories which I don't want to be altered in any way, and
usually I use 'less' for viewing files in such directories. But I'd like
to use vim74/macros/less.sh as an alias for 'less' – which creates swap
files :-(
I simply use this patch:
--- /usr/local/share/vim/vim74/macros/less.sh.orig 2014-10-06
15:51:25.000000000 +0200
+++ /usr/local/share/vim/vim74/macros/less.sh 2014-10-16
16:10:26.000000000 +0200
@@ -8,9 +8,9 @@
echo "Missing filename" 1>&2
exit
fi
- vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' -
+ vim -R --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' -
else
- vim --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@"
+ vim -R --cmd 'let no_plugin_maps = 1' -c 'runtime! macros/less.vim' "$@"
fi
else
# Output is not a terminal, cat arguments or stdin

I guess "nomodify" should prefent vim from creating a swap file, but in
the mean time, perhaps you want to adopt this patch.

Btw., I'm absolutely no vim power user. In fact, I don't know/use all
those great extensions you've developed! I just like syntax
highlightning and therefore prefere 'vim' over the base 'vi'.

Thanks, please CC me, I'm not subscribed.

-Harry


-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui