add tmpwin#exists() to check the existence of tmporary buffers.
check bufnr after opening buffers
use default setting if key funcref doesn't exist.