summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftplugin/hackernews.py1
-rw-r--r--plugin/hackernews.vim3
2 files changed, 3 insertions, 1 deletions
diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py
index 2381823..4f08a47 100644
--- a/ftplugin/hackernews.py
+++ b/ftplugin/hackernews.py
@@ -163,7 +163,6 @@ def link(external=False):
item_id = url[url.find("item?id=")+8:]
if item_id:
- print(item_id)
if external:
browser = webbrowser.get()
browser.open("https://news.ycombinator.com/item?id="+item_id)
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',