• Stars
    star
    17
  • Rank 1,257,181 (Top 25 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Hacker News plugin for Vim πŸ“°πŸ–€πŸ’™πŸ’›

vim-hackernews

Browse Hacker News inside Vim. Fork from vim-hackernews which is no longer maintained.

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 front page in Vim by executing the :HackerNews command
  • The HackerNews command takes an optional parameter to view items other than the top stories on the front page: ask, show, shownew, jobs, best, active, newest, noobstories, <item id>, or <search query>
  • Press lowercase o to open links in Vim
  • Press uppercase O to open links in default web browser
  • Numbered lines with story titles on the front page link to the story url
  • Comment lines on the front page link to the comments url
  • Press uppercase F to fold current comment thread
  • Press lowercase u to go back
  • Press Ctrl+r to go forward
  • Execute the :bd command to close and remove the Hacker News buffer

Enhanced Motions

Uppercase J and K are mapped to helpful new motions based on what type of content is on the screen:

  • Move to next/prev item when viewing the front page. (If the cursor is on a numbered line with story title the cursor will move to the next/prev numbered line with story title. If the cursor is on a comment line it will move to the next/prev comment line.)
  • Move to next/prev comment when viewing comments.
  • Move to next/prev paragraph when viewing the text version of articles.

Installation

Pathogen (https://github.com/tpope/vim-pathogen)
git clone https://github.com/adelarsq/vim-hackernews ~/.vim/bundle/vim-hackernews
Vundle (https://github.com/gmarik/vundle)
Plugin 'adelarsq/vim-hackernews'
NeoBundle (https://github.com/Shougo/neobundle.vim)
NeoBundle 'adelarsq/vim-hackernews'

Running Tests

$ vim -c Vader! tests.vader

Contributions

Issues and Pull Requests are always welcome!

License

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

More Repositories

1

neoline.vim

Status Line for Neovim focused on beauty and performance βœ…πŸ–€πŸ’™πŸ’›
Lua
189
star
2

fsharp-cheatsheet

An updated cheat sheet for F# πŸ”·πŸ–€πŸ’™πŸ’›
183
star
3

vim-emoji-icon-theme

Emoji/Unicode Icons Theme for Vim and Neovim with support for 40+ plugins and 380+ filetypes πŸŽ¨πŸ–€πŸ’™πŸ’›
Vim Script
77
star
4

vim-matchit

vim-matchit πŸ–‡πŸ–€πŸ’™πŸ’›
Vim Script
54
star
5

image_preview.nvim

Image Preview for Neovim πŸ–Ό
Lua
44
star
6

fsharp_vids

Video collection about F# πŸ”·πŸŽžοΈ
38
star
7

neofsharp.vim

Basic F# support for (Neo)Vim πŸ”·
Vim Script
34
star
8

awesome-fsharp-project-templates

Awesome F# Project Templates πŸ”·πŸ–€πŸ’™πŸ’›
19
star
9

neovcs.vim

VCS support for Neovim 🌱
Vim Script
18
star
10

hotchocolate_fsharp_sample

GraphQL server using .NET 6, F# and Hot Chocolate 🍫
18
star
11

vim-pomodoro

πŸ… Vim plugin for the Pomodoro time management technique
Vim Script
14
star
12

falco_graphql_sample

Falco GraphQL Sample πŸ£πŸ–€πŸ’™πŸ’›
F#
14
star
13

awesome-fable-react-native

An awesome list about to use Fable with ReactNative πŸ§šβ€β™€οΈ
11
star
14

eclipse-gotofile-plugin-kai

πŸŒ• Modified version from Muermann's Goto File plugin
Java
11
star
15

vim-grimmjow

🌴 Vim theme
Vim Script
9
star
16

suave_graphql_sample

Suave GraphQL Sample
F#
8
star
17

awesome-bugs

Awesome Bugs πŸ›
6
star
18

Vim-Autoclose

βœ’οΈ Inserts matching bracket, paren, brace or quote
Vim Script
6
star
19

lightlang

General purpose programming language made for peace πŸ–€πŸ’™πŸ’›
5
star
20

awesome-fsharp-pt

Uma lista com conteΓΊdos sobre F# em LΓ­ngua Portuguesa
4
star
21

vim-tetris

Tetris para Vim
Vim Script
3
star
22

nerdtree-terminal

nerdtree plugin terminal support
Vim Script
2
star
23

dbunit

🍁 DBUnit
Java
2
star
24

Sublime-Theme-Black-Sidebar-Icons

🍫 A black theme for sidebar from Sublime with icons.
2
star
25

lsp_installer

Lua
1
star
26

adelarsq.github.io

Adelar's Home Page
1
star
27

jms-demo-play-2.1

πŸ“§ jms-demo with play 2.1
Java
1
star
28

fsharp_hints

F# hints
F#
1
star
29

nerdtree-fzf

NERDTree Plugin to use with FZF
Vim Script
1
star
30

nerdtree-far

Nerdtree Plugin to use with Far
Vim Script
1
star
31

showmarks.nvim

Show marks on current buffer
Fennel
1
star
32

fsharp_samples

F# Samples
F#
1
star
33

Vim-Tetr1s

πŸ“Š Tetris Game for Vim
1
star
34

BufJump

πŸš€ Mapping to manage jump between buffer
Vim Script
1
star
35

learn_fsharp_tweets

Learn F# Tweets πŸ”·
1
star
36

Snake.vim

🐍 Snake Game for Vim
Vim Script
1
star
37

ignored_files.vim

Plugin to ignore filetypes and buffers for a number of plugins
Vim Script
1
star