diff options
| author | ryanss | 2015-02-28 13:07:40 -0500 |
|---|---|---|
| committer | ryanss | 2015-02-28 13:07:40 -0500 |
| commit | 8d1b3be4be06c4304bc19c93d99828faa2f3eaff (patch) | |
| tree | 42d1c17591eb0acba8c6c92c738d0b5b0fa08b9d /ftplugin | |
| parent | 7c68afc6d9983e3d77f7dcb48409f24e940e021f (diff) | |
| download | vim-hn-8d1b3be4be06c4304bc19c93d99828faa2f3eaff.tar.gz | |
Highlight OP username in comment titles
Diffstat (limited to 'ftplugin')
| -rw-r--r-- | ftplugin/hackernews.py | 4 |
1 files changed, 4 insertions, 0 deletions
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: |
