Saturday, February 9, 2013

Vim :: How To Disable Swap File for FileType

Shameless double post --
http://stackoverflow.com/questions/14791902/vim-how-to-disable-swap-file-for-filetype
<http://stackoverflow.com/questions/14791902/vim-how-to-disable-swap-file-for-filetype>

I'm attempting to disable swap specifically for text files. However, autocmd
attempts are not working correctly. Is it possible to disable swap on a
filetype basis?

_vimrc

call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
call pathogen#infect()
filetype plugin indent on
...
autocmd FileType text set noswapfile // fails ...




--
View this message in context: http://vim.1045645.n5.nabble.com/Vim-How-To-Disable-Swap-File-for-FileType-tp5713719.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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: