Add syntax check options.

I improved the process for syntax check in ```BufWritePre``` and ```CursorHold```.