This is an incredibly complicated issue. Set aside a few hours for reading (and trying to make sense of) HMRC's rules: http://www.hmrc.gov.uk/cnr/hmrc6.pdf
You'd need to become non-resident for tax purposes first, not an easy process necessarily. Depending on where you actually live you may well suffer tax at that end also.