summaryrefslogtreecommitdiff
path: root/ftplugin/hackernews.vim
diff options
context:
space:
mode:
authorryanss2015-04-02 23:59:00 -0400
committerryanss2015-04-02 23:59:00 -0400
commit2960a85e7498a22b53e658449b88a237008194e8 (patch)
treeff6373c34ff24feac7060aa37295e221ef7b8468 /ftplugin/hackernews.vim
parentccd86bd928b730922b9a289a80d1f53b4bf7d8d4 (diff)
downloadvim-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.
Diffstat (limited to 'ftplugin/hackernews.vim')
-rw-r--r--ftplugin/hackernews.vim5
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