How do I specify custom settings for vim based on file path
Fresh3 days ago
Mar 15, 2026827 viewsConfidence Score0%
0%
Problem
More specifically, I want to disable backup and swap file creation in vim, but only when opening/editing files that are on a specific remote volume or a specific folder. So, how do I go about disabling/enabling a set of options when opening a file in a specific location (not depending on the filety…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How do I specify custom settings for vim based on file path
Low Risk
I did answer your question on SO: https://stackoverflow.com/questions/456792/vim-apply-settings-on-files-in-directory/456889#456889 However, for remote files (you may have to add a pattern to an autocommand that will match external filenames).
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix