From 8d1b3be4be06c4304bc19c93d99828faa2f3eaff Mon Sep 17 00:00:00 2001 From: ryanss Date: Sat, 28 Feb 2015 13:07:40 -0500 Subject: Highlight OP username in comment titles --- ftplugin/hackernews.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/hackernews.py b/ftplugin/hackernews.py index 47c798f..26cfa62 100644 --- a/ftplugin/hackernews.py +++ b/ftplugin/hackernews.py @@ -158,6 +158,8 @@ def link(external=False): print_comments([item,]) else: print_comments(item['comments']) + # Highlight OP username in comment titles + vim.command("syn match Question /%s/ contained" % item['user']) return # Search for [http] link @@ -220,6 +222,8 @@ def link(external=False): print_comments([item,]) else: print_comments(item['comments']) + # Highlight OP username in comment titles + vim.command("syn match Question /%s/ contained" % item['user']) return if external: -- cgit v1.2.3