Sorry, that wasn't very clear. In all cases, VPP->VPP, PGC->PGC, PGD->PGD. I don't have a pull-up for MCLR from the positive voltage whilst I'm testing.
This works:
+5V from ICSP to VDD
GND from ICSP to VSS
And this doesn't:
+5V from external power to VDD
GND from external power to VSS
No other pins are connected on the PIC. I haven't connected +5V/GND (external) to +5V/GND on the ICSP header, but have tried with "force target power" in PICkit2. Should these two be connected?
I either get "No device detected" or "Unsupported part (ID=FFF0)" in the second case.
In the long run I'm thinking I'll just build a breakout board with the 18F1320 ports on stripboard and a proper ICSP connector, breadboard can be a pain!