diff options
| author | ryanss | 2015-02-16 10:57:55 -0500 |
|---|---|---|
| committer | ryanss | 2015-02-16 10:57:55 -0500 |
| commit | 5712aafb874ce19b38881ddb4a0e158f6741dae5 (patch) | |
| tree | e61460cba3fc824d82da9d8e97883673fbb991ce /syntax/hackernews.vim | |
| parent | 49cb818fce8d46f4ede9f92c477756053e1639b6 (diff) | |
| download | vim-hn-5712aafb874ce19b38881ddb4a0e158f6741dae5.tar.gz | |
Front page title line now links to item url. Close #4
The first line of of each front page item (that contains the title and
domain) links to the external url associated with the item.
The second line of each item (that contains the points, user, comment
count) links to the comments page.
This is consistent with how the actual Hacker News front page works.
Diffstat (limited to 'syntax/hackernews.vim')
| -rw-r--r-- | syntax/hackernews.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax/hackernews.vim b/syntax/hackernews.vim index 133a301..4555b9d 100644 --- a/syntax/hackernews.vim +++ b/syntax/hackernews.vim @@ -13,8 +13,9 @@ if exists("b:current_syntax") endif -" Hide hacker news item id at end of main page lines +" Hide hacker news item id or url at end of front page lines syn match Ignore /\s\[[0-9]\{3,}\]$/ +syn match Ignore /\s\[http.\+\] $/ " Make sure `Ignore` highlight group is hidden " Some colorschemes do not hide the `Ignore` group (ex. Solarized) |
