Re: Swap directory changes when opening files under /media [Fedora]

2017-04-22 Thread Nikolay Aleksandrovich Pavlov
2017-04-21 13:16 GMT+03:00 Ian : > Perfect, thanks. Here's what I get: > > --- Auto-Commands --- > fedora BufReadPre > /media/* set directory=~/tmp,/var/tmp,/tmp > Last set from /etc/vimrc > /run/media/* > set directory=~/tmp,/var/tmp,/tmp >

Re: Swap directory changes when opening files under /media [Fedora]

2017-04-21 Thread Ben Fritz
On Friday, April 21, 2017 at 5:16:17 AM UTC-5, Ian wrote: > Perfect, thanks. Here's what I get: > > --- Auto-Commands --- > fedora BufReadPre > /media/* set directory=~/tmp,/var/tmp,/tmp > Last set from /etc/vimrc > /run/media/* > set directory=~/tmp,/var/tmp,/tmp >

Re: Swap directory changes when opening files under /media [Fedora]

2017-04-21 Thread Gary Johnson
On 2017-04-21, Ian wrote: > I've just added this to my profile and it has fixed the problem: > > autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set > directory=~/.vim/swap// > > Though there might be a better way to just disable the other > autocmd somehow. To disable it, put this

Re: Swap directory changes when opening files under /media [Fedora]

2017-04-21 Thread Ian
I've just added this to my profile and it has fixed the problem: autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set directory=~/.vim/swap// Though there might be a better way to just disable the other autocmd somehow. -- -- You received this message from the "vim_use" maillist.

Re: Swap directory changes when opening files under /media [Fedora]

2017-04-21 Thread Ian
Perfect, thanks. Here's what I get: --- Auto-Commands --- fedora BufReadPre /media/* set directory=~/tmp,/var/tmp,/tmp Last set from /etc/vimrc /run/media/* set directory=~/tmp,/var/tmp,/tmp Last set from /etc/vimrc /mnt/*set

Re: Swap directory changes when opening files under /media [Fedora]

2017-04-20 Thread Ben Fritz
On Thursday, April 20, 2017 at 9:59:08 AM UTC-5, Ian wrote: > I'm on Fedora 25. When I open files from mounted filesystems on /media vim > runs this (from vim log): > > Executing BufReadPre Auto commands for "/media/*" > autocommand set directory=~/tmp,/var/tmp,/tmp > > This changes my swap

Swap directory changes when opening files under /media [Fedora]

2017-04-20 Thread Ian
I'm on Fedora 25. When I open files from mounted filesystems on /media vim runs this (from vim log): Executing BufReadPre Auto commands for "/media/*" autocommand set directory=~/tmp,/var/tmp,/tmp This changes my swap directory from what I want it to be and means I have swap files in two