scrooloose/syntastic — Issue #134: Feedback request for removal of bufreadpost autocmd
Author: scrooloose
Created: 2011-12-22 18:14:18+00:00
State: open

Im considering making automatic syntax checks only occur when a buffer is saved, and not when it is first loaded. Basically im talking about a one line change:

- autocmd BufReadPost,BufWritePost * call s:UpdateErrors(1)
+ autocmd BufWritePost * call s:UpdateErrors(1)

This will remove the lag that sometimes occurs when opening vim or switching to new buffers with certain filetypes. Also, it seems sensible since a user only cares about the syntax of files that they are _editing_ just just viewing. E.G. if i am searching through someone elses library code (e.g. a rubygem or npm lib) for something then I dont want that to be syntax checked since I have no intention of changing the code.

Thoughts anyone? im looking at you @kongo2002, @kstep and @millermedeiros :-)

I started thinking about this the other day after reading this article in which the author suggests that syntasitc is "over eager" to the point that he considers it "harmful".

http://mislav.uniqpath.com/2011/12/vim-revisited/