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:[email protected]] 
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 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 [hidden email]. 
For more options, visit https://groups.google.com/groups/opt_out. 





  _____  

If you reply to this email, your message will be added to the discussion
below:

http://vim.1045645.n5.nabble.com/Vim-How-To-Disable-Swap-File-for-FileType-t
p5713719p5713724.html 

To unsubscribe from Vim :: How To Disable Swap File for FileType, click here
<http://vim.1045645.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe
_by_code&node=5713719&code=ZWR3YXJkQGVkd2FyZGJlY2tldHQuY29tfDU3MTM3MTl8LTExM
DIwMzYyNzM=> .
 
<http://vim.1045645.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewe
r&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNam
espace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.Nod
eNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emai
ls%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML 





--
View this message in context: 
http://vim.1045645.n5.nabble.com/Vim-How-To-Disable-Swap-File-for-FileType-tp5713719p5713727.html
Sent from the Vim - General mailing list archive at Nabble.com.

-- 
-- 
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/groups/opt_out.


Reply via email to