summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ftplugin/hackernews.vim3
-rw-r--r--tests.vader2
2 files changed, 3 insertions, 2 deletions
diff --git a/ftplugin/hackernews.vim b/ftplugin/hackernews.vim
index f8447f7..8334464 100644
--- a/ftplugin/hackernews.vim
+++ b/ftplugin/hackernews.vim
@@ -30,8 +30,9 @@ Python << EOF
if 'hackernews' not in sys.modules:
import hackernews
else:
+ import imp
# Reload python module to avoid errors when updating plugin
- hackernews = reload(hackernews)
+ hackernews = imp.reload(hackernews)
EOF
diff --git a/tests.vader b/tests.vader
index 64e1911..cee9a9b 100644
--- a/tests.vader
+++ b/tests.vader
@@ -67,12 +67,12 @@ Do (Test Key Mappings):
:map u\<cr>
:map <C-R>\<cr>
"apdd
+ :%s/^.*Netrw.*$\n//g\<cr>
Expect (Keys Mapped):
o *@:Python hackernews.link()<CR>
O *@:Python hackernews.link(external=True)<CR>
gx *@:Python hackernews.link(external=True)<CR>
- n gx <Plug>NetrwBrowseX
u *@:Python hackernews.save_pos()<CR>u:Python hackernews.recall_pos()<CR>
<C-R> *@:Python hackernews.save_pos()<CR><C-R>:Python hackernews.recall_pos()<CR>