From b00d251042ac3d87c42b2d7e44b08445797833ad Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 19 Dec 2020 01:02:02 -0500 Subject: Open rfc-index.txt for :RFC without argument --- home/.config/nvim/init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'home') diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim index d4bad8eb..b814666b 100644 --- a/home/.config/nvim/init.vim +++ b/home/.config/nvim/init.vim @@ -36,7 +36,10 @@ nmap l :0read ~/src/etc/agpl.c'' nmap L :0read ~/src/etc/gpl.c'' nmap d :0delete:0read !date +'.Dd \%B \%e, \%Y' -command! -nargs=1 RFC :silent noswapfile view ~/src/rfc/rfc.txt.gz +command! -bar -nargs=? RFC + \ if !empty() | + \ silent noswapfile view ~/src/rfc/rfc.txt.gz | + \ else | RFC -index | endif autocmd BufRead rfc*.txt.gz \ setlocal keywordprg=:RFC iskeyword=a-z,A-Z,48-57,.,-,[,] | \ nmap gO :call search('^Table of Contents', 'bcs') -- cgit 1.4.1