Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mhinz/vim-rfc
:notebook: Query RFC database and download RFCs from within Vim.
https://github.com/mhinz/vim-rfc
lookup neovim rfc search vim vim-plugin
Last synced: 1 day ago
JSON representation
:notebook: Query RFC database and download RFCs from within Vim.
- Host: GitHub
- URL: https://github.com/mhinz/vim-rfc
- Owner: mhinz
- License: mit
- Created: 2012-10-29T09:27:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2023-11-28T09:18:08.000Z (12 months ago)
- Last Synced: 2024-08-07T18:47:57.700Z (3 months ago)
- Topics: lookup, neovim, rfc, search, vim, vim-plugin
- Language: Vim script
- Homepage:
- Size: 1.82 MB
- Stars: 109
- Watchers: 5
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
**vim-rfc** lists all existing [RFCs](https://en.wikipedia.org/wiki/Request_for_Comments) 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](./demo.svg)
- Includes a modified version of [vim-scripts/rfc-syntax](https://github.com/vim-scripts/rfc-syntax) for RFC syntax highlighting.
## Installation
Use your favorite plugin manager.
Using [vim-plug](https://github.com/junegunn/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 `` 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,
``/`` 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 `` 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 NvimIf `$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.