diff options
Diffstat (limited to 'plugin')
| -rw-r--r-- | plugin/hackernews.vim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugin/hackernews.vim b/plugin/hackernews.vim index bc786b4..6e818ab 100644 --- a/plugin/hackernews.vim +++ b/plugin/hackernews.vim @@ -14,6 +14,9 @@ filetype plugin on " Load ftplugin when opening .hackernews buffer au! BufRead,BufNewFile *.hackernews set filetype=hackernews +" Prevent syntax highlighting issues in long comment threads with code blocks +au! BufEnter *.hackernews syntax sync fromstart + function! HackerNews(...) if a:0 > 0 let available_lists = ['news', 'newest', 'ask', 'show', 'shownew', |
