Skip to content

guidealexis/vim-hackernews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-hackernews

Browse Hacker News inside Vim.

Hacker News Front Page in Vim

Hacker News Comments in Vim

Uses cheeaun's Unofficial Hacker News API to retrieve home page stories and comments and FUCK YEAH MARKDOWN for rendering HTML articles as text.

Basic Usage

  • Open the Hacker News home page in Vim by executing the :HackerNews command
  • Press lowercase o to open links in Vim
  • Press uppercase O to open links in default web browser
  • Press lowercase u to go back (or whatever you've remapped undo to)
  • Press Ctrl+r to go forward (or whatever you're remapped redo to)
  • Execute the :bd command to close and remove the Hacker News buffer

Installation

git clone https://github.com/ryanss/vim-hackernews ~/.vim/bundle/vim-hackernews
Plugin 'ryanss/vim-hackernews'
NeoBundle 'ryanss/vim-hackernews'

Roadmap

  • Add option to format text like different programming languages to make it less obvious that you are reading Hacker News in Vim
  • Add configuration value for custom text width
  • Add configuration value to specify external browser
  • Move away from unofficial API by creating server to cache official Hacker News API data
  • Move away from fuckyeahmarkdown.com by creating server that uses python-readability to convert article HTML to text

Contributions

Issues and Pull Requests are always welcome!

License

Code is available according to the MIT License (see LICENSE).