From d58b8159822fc5def2561ed088fd364d58602363 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Mon, 21 Dec 2020 18:17:20 -0500 Subject: Match the number part of the argument to :RFC This fixes pressing K on "RFC3501", for example. --- doc/rfc/rfc.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/rfc/rfc.vim b/doc/rfc/rfc.vim index 56d2085c..2455d8a6 100644 --- a/doc/rfc/rfc.vim +++ b/doc/rfc/rfc.vim @@ -3,7 +3,11 @@ if !exists('g:rfc_path') endif function! s:RFC(number) - let number = (empty(a:number) ? '-index' : str2nr(a:number, 10)) + if !empty(a:number) + let number = str2nr(matchstr(a:number, '\d\+'), 10) + else + let number = '-index' + endif let path = expand(g:rfc_path . '/rfc' . number . '.txt.gz') if filereadable(path) execute 'silent' 'noswapfile' 'view' path -- cgit 1.4.1 > dontfiles
summary refs log tree commit diff
path: root/bin/cash/error.c (unfollow)
Commit message (Collapse)Author
2019-02-07Set class="hi" on <pre>June McEnroe
2019-02-07Check subexpressions with hi -cJune McEnroe
2019-02-07Use subexpression highlight for system include pathsJune McEnroe
2019-02-07Move comments below strings in hiJune McEnroe
Also add the #if 0 "comment" syntax.
2019-02-07Add subexpression highlighting to hiJune McEnroe
2019-02-06Add pattend to hiJune McEnroe
2019-02-06Add hi syntax highlighterJune McEnroe
2019-02-05Update neovim to 0.3.4 on DarwinJune McEnroe
Also rewrite install.sh once again.
2019-02-05Fix DEL in aesJune McEnroe
2019-02-05Add aesJune McEnroe
Okay this should really be aes(6) but I don't feel like adding back MAN6 in the Makefile.
2019-02-01Set nvim Directory back to blueJune McEnroe