affordableCebu
Classified Ads
Tips & Guides
Login
Register
Search
Ask Question
Post a Free Ad
Home
»
Questions
»
Computers
[
Ask a new question
]
VIM: Disable Swap
VIM: Disable Swap
How does one disable swap files for VIM via .vimrc?
Asked by:
Guest
| Views: 337
Total answers/comments:
2
Comments display order:
By default
New comments first
Old comments first
Guest
[
Entry
]
"set nobackup
set nowritebackup
set noswapfile"
Guest
[
Entry
]
"I would not disable swap files completely because they are used for recovery if vim crashes.
Instead, put them into a temp folder so that they are not scattered all over:
if has(""win32"")
set directory=c:\\tmp,c:\\temp
elseif has(""unix"")
set directory=/tmp
endif"