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
>
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
>
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
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.
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
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
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