I change _vimrc to filetype text as a test I.E. set ft=text and the swap file was still being created … However, I disabled my plugins and the autocmd worked … I’m of the impression there’s a conflict with subsequent filetype settings …
As such I decided on an alternative :: Saving the swaps into a dedicated directory …
IE. set dir=$HOME/_vimswap//,%TEMP%//,/%TMP%//,.
That will work for me …
Thanks Benjamin
From: Benjamin Fritz [via VIM] [mailto:[hidden email]]
Sent: Saturday, February 09, 2013 10:24 PM
To: EdwardBeckett
Subject: Re: Vim :: How To Disable Swap File for FileType
On Saturday, February 9, 2013 3:52:52 PM UTC-6, [hidden email] wrote:
>
> autocmd FileType text set noswapfile // fails ...
>
This should work, the :help for 'swapfile' says:
When 'swapfile' is reset, the swap file for the current buffer is
immediately deleted. When 'swapfile' is set, and 'updatecount' is
non-zero, a swap file is immediately created.
Why do you think it's not working?
Maybe your "text" filetype isn't being detected? I didn't think there was such a filetype by default. What is the value of your filetype option in the file you're worried about?
--
--
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 click here.
NAML
No comments:
Post a Comment