FS#57715 - [vim] vim creates directories in the current working directory
Attached to Project:
Arch Linux
Opened by Neven Sajko (Neven) - Sunday, 04 March 2018, 18:21 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 09 May 2018, 22:45 GMT
Opened by Neven Sajko (Neven) - Sunday, 04 March 2018, 18:21 GMT
Last edited by Levente Polyak (anthraxx) - Wednesday, 09 May 2018, 22:45 GMT
|
Details
Description:
In the current directory vim when run creates the directories ~, ~/.vim, and ~/.vim/swap. The problem could be caused by using the contents of the SHELL environment variable instead of "/bin/sh" (The former is an interactive user shell, the latter for scripts and must conform to POSIX.). Additional info: * vim 8.0.1542-2, but may have regressed before that? Steps to reproduce: Run vim, list directory |
This task depends upon
Closed by Levente Polyak (anthraxx)
Wednesday, 09 May 2018, 22:45 GMT
Reason for closing: Fixed
Additional comments about closing: 8.0.1806-1
Wednesday, 09 May 2018, 22:45 GMT
Reason for closing: Fixed
Additional comments about closing: 8.0.1806-1
I guess the bug is upstream, but changing the occurences of '~' in archlinux.vim to '$HOME' seems to be a good workaround.
Or do as
FS#57682suggested and use mkdir(expand('~/.vim/swap'), 'p', 0700) since why shell out to do this at all.