blob: 90d8b81feaa34f3d263de173d0f9497132339031 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
if !has('python')
echo "HackerNews.vim Error: Requires Vim compiled with +python"
finish
endif
" Import Python code
let s:path = expand("<sfile>:p:h")
execute "pyfile " . s:path . "/hackernews.py"
command! HackerNews python hacker_news()
map <return> :python hacker_news_item()<cr>
|