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 directory=~/tmp,/var/tmp,/tmp
        Last set from /etc/vimrc
...

This lead me to /etc/vimrc which has a line:

  " don't write swapfile on most commonly used directories for NFS mounts or 
USB sticks
  autocmd BufNewFile,BufReadPre /media/*,/run/media/*,/mnt/* set 
directory=~/tmp,/var/tmp,/tmp

Which confuses me. The aim appears to be to NOT write swap files but all it 
does is change the location of swap files. And I do want swap files for my 
mounts in case of recovery.

I am tempted to remove this line though it feels a bit hacky to change this in 
/etc/vimrc. I will see if I can work out how to override this autocmd in my own 
profile perhaps.

-- 
-- 
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 information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" 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.

Reply via email to