How can I read RSS in VIM?

I would like to read RSS in VIM, but I did not find a plugin there.

Do you have any ideas?

+3
source share
6 answers

I just used feedparser.py at http://www.vim.org/scripts/script.php?script_id=2147 to get a timeline view of the track servers. You need to install it and + python in your vim installation. Although there are perhaps other language libraries you can try if you are a ruby ​​/ perl guy.

A little knowledge of the vim script and you're there (check out the link above and steal what you need). And feel free to do everything you damn well with your own vim installation :)

: , ... heres - vimrc,

fun MyFeed(feed)
split
enew
set buftype=nofile
python b = vim.current.buffer
python import re
python import feedparser;f = feedparser.parse(vim.eval('a:feed'))
python for i in f['items']: b.append('%s {{{1 %s' % (str(i.title), str(i.link)));
            \b.append(str(re.sub(r'<[^>]*?>', '',i.summary_detail.value)).split("\n"))
setlocal  textwidth=120
norm gggqGgg
set foldmethod=marker

endfun
com VimRssFeed call MyFeed("http://stackoverflow.com/feeds/question/566656")
com Slashdot call MyFeed("http://rss.slashdot.org/Slashdot/slashdot")
com MyStack call MyFeed("http://stackoverflow.com/feeds/user/59592")

, http://www.feedparser.org/

+3

, emacs.

, feed2imap rss2email rss- (, mutt)

+3

- , vim? RSS-, newsbeuter.

+2

:

:e http://whatever.com/feed_url

(Linux) links, temp Vim . , -. . :h g:netrw_http_cmd.

Emacs. Vim - .:)

+1

There is a plugin for firefox - Vimperator (kindly provided by gpojd) - which allows you to use firefox with vim shortcuts and how. Significant interface change.

0
source

There is a plugin for this: http://danielchoi.com/software/vnews.html

I have not tried this myself yet, but it seems to be what I want. I agree with others that Vim is not Emacs. However, making Vim a bit more like an OS with editing capabilities will be pretty cool in my eyes.

0
source

Source: https://habr.com/ru/post/1703517/


All Articles