You can use snapping. For QGis version >= 2.8 you need to activate “Advanced” snapping mode (old version).
A test is in progress to remove the snapping and inherit the preferences of the advanced digitizing (CADInput).
Settings
Numerical Digitize
Enter search terms or a module, class or function name.