summaryrefslogtreecommitdiff
path: root/ftplugin/hackernews.vim
blob: b5d9372e0899115dc1ec4f5d725c13fde9273b43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"  vim-hackernews
"  --------------
"  Browse Hacker News (news.ycombinator.com) inside Vim.
"
"  Author:  ryanss <ryanssdev@icloud.com>
"  Website: https://github.com/ryanss/vim-hackernews
"  License: MIT (see LICENSE file)
"  Version: 0.1.1


if !exists("g:hackernews_marks")
    let g:hackernews_marks = {}
endif


noremap <buffer> o :python hacker_news_link()<cr>
noremap <buffer> O :python hacker_news_link(external=True)<cr>
noremap <buffer> u u:python recall_pos()<cr>
noremap <buffer> <C-r> <C-r>:python recall_pos()<cr>