diff options
| author | ryanss | 2015-04-02 23:59:00 -0400 |
|---|---|---|
| committer | ryanss | 2015-04-02 23:59:00 -0400 |
| commit | 2960a85e7498a22b53e658449b88a237008194e8 (patch) | |
| tree | ff6373c34ff24feac7060aa37295e221ef7b8468 | |
| parent | ccd86bd928b730922b9a289a80d1f53b4bf7d8d4 (diff) | |
| download | vim-hn-2960a85e7498a22b53e658449b88a237008194e8.tar.gz | |
Set default story list to prevent exception
Exception only occurs when calling `:edit .hackernews` instead of
properly calling the `:HackerNews` command.
| -rw-r--r-- | ftplugin/hackernews.vim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim index 8334464..dbf5f4b 100644 --- a/ftplugin/hackernews.vim +++ b/ftplugin/hackernews.vim @@ -17,6 +17,11 @@ else finish endif + +if !exists("g:hackernews_marks") + let g:hackernews_stories = 'news' +endif + if !exists("g:hackernews_marks") let g:hackernews_marks = {} endif |
