• Stars
    star
    110
  • Rank 306,782 (Top 7 %)
  • Language
    Vim Script
  • License
    MIT License
  • Created over 11 years ago
  • Updated 6 months ago

Reviews

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

Repository Details

📓 Query RFC database and download RFCs from within Vim.

vim-rfc lists all existing RFCs and opens the selected one in a new buffer.

Works in Vim and Nvim, but it requires python3 support: :echo has('python3')

vim-rfc in action

Installation

Use your favorite plugin manager.

Using vim-plug:

Plug 'mhinz/vim-rfc'

Restart Vim and :PlugInstall, then have a look at the docs: :h rfc.

Usage

List documents:

:RFC [vim regexp]

Rebuild cache and list documents:

:RFC! [vim regexp]

Use <cr> to open an entry or q to quit.

Examples: :RFC, :RFC 100, :RFC http/2, :RFC ipv4 addresses.

Within a RFC document, if you are on a line from the table of contents, <c-]>/<cr> will jump to the referenced section. On a string like STD 10 or RFC 1234 (which should also be highlighted), it opens the referenced document instead. Use <c-o> to jump back.

Configuration

There are no options, but you can change the default colors used in the window opened by :RFC. See :h rfc-colors.

Implementation

This first time this plugin is used, it takes a few seconds to download an index file containing all existing RFC documents (~12 MB). That XML file is parsed and all RFC and STD entries get stored in a cache file.

The second time this plugin is used, the cache file will be used right away.

If you select an entry, it gets downloaded and immediately put into a new buffer. There is no temporary file created on the disk.

Default cache file locations:

  • $XDG_CACHE_HOME/vim/vim-rfc.txt for Vim
  • $XDG_CACHE_HOME/nvim/vim-rfc.txt for Nvim

If $XDG_CACHE_HOME is not set, it defaults to ~/.cache.

Author and Feedback

If you like my plugins, please star them on Github. It's a great way of getting feedback. Same goes for issues reports or feature requests.

More Repositories

1

vim-galore

🎓 All things Vim!
Vim Script
16,342
star
2

vim-startify

🔗 The fancy start screen for Vim.
Vim Script
5,234
star
3

vim-signify

âž• Show a diff using Vim its sign column.
Vim Script
2,653
star
4

neovim-remote

👌 Support for --remote and friends.
Python
1,662
star
5

vim-grepper

👾 Helps you win at grep.
Vim Script
1,195
star
6

dotfiles

😈 Vim, git, zsh, tmux, and other goodies.
Shell
313
star
7

vim-sayonara

👺 Sane buffer/window deletion.
Vim Script
291
star
8

vim-mix-format

Vim integration for the Elixir formatter.
Vim Script
222
star
9

vim-janah

Vim colorscheme.
Vim Script
193
star
10

vim-crates

Handle Cargo dependencies like a Rustavimean.
Vim Script
91
star
11

vim-tree

🌲 Use tree(1) for quick navigation.
Vim Script
57
star
12

vim-hugefile

Speed up loading of large files.
Vim Script
55
star
13

vim-lookup

Jump to the definition of variables or functions in VimL code.
Vim Script
55
star
14

vim-halo

😇 Visual highlight for your cursor.
Vim Script
49
star
15

vi-editor-history

Short history of editors.
45
star
16

vim-randomtag

💡 Jump to random Vim documentation.
Vim Script
41
star
17

spotlight-cli

 Command-line tool for Spotlight.
Shell
35
star
18

brew-go

Manage Go tools via Homebrew.
Ruby
28
star
19

node-thesaurus-com

Look up synonyms/antonyms on thesaurus.com.
JavaScript
17
star
20

flauschix

My new POSIX-like operating system.
C
6
star
21

let-me-work

Chrome extension that helps focusing.
JavaScript
5
star
22

c-corner

C
4
star
23

gomali

Simple Markdown linter.
Go
4
star
24

sweepy

A simple threaded ping sweeping tool.
C
2
star