Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to make unison (file synchronization) to ignore files with .swp extensions? what should i add on the prf file?

share|improve this question
up vote 6 down vote accepted

See the manual

ignore = Name {*.swp}

It is important to note that the wildcard * will not match files that begin with a dot ., so this will not ignore .swp files created temporarily by vim. To ignore files with a leading dot in their name you also need the line

ignore = Name {.*.swp}

You can combine these two lines (ignore all files that end with .swp either with or without a leading .) and also ignore some of the other temporary files that vim creates (.swo and .swn) with this single line

ignore = Name {.*,*}.sw[pon]
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.