time boxing
Time boxing is a time-management technique. You allocate a specific amount of time to a task and then work on it during that time uninterrupted.
For me 25 minutes works very well. After a 25 minute segment I take a 5 minute break.
If there is a bigger task or project, it can be split into smaller chunks and over a couple of days.