I'm not sure how lenders may feel when they realise you have 18 months on your visa, whether they'll feel inclined to lend to you etc.
Put it this way - if a British person wants to buy a property in France, where does he go to get a mortgage from? Lenders in the UK, or lenders in France?
Thought so.