summary refs log tree commit diff
path: root/home/.config/nvim/init.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--home/.config/nvim/init.vim5
1 files changed, 4 insertions, 1 deletions
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 <leader>l :0read ~/src/etc/agpl.c<CR>''
 nmap <leader>L :0read ~/src/etc/gpl.c<CR>''
 nmap <leader>d :0delete<CR>:0read !date +'.Dd \%B \%e, \%Y'<CR>
 
-command! -nargs=1 RFC :silent noswapfile view ~/src/rfc/rfc<args>.txt.gz
+command! -bar -nargs=? RFC
+	\ if !empty(<q-args>) |
+	\ silent noswapfile view ~/src/rfc/rfc<args>.txt.gz |
+	\ else | RFC -index | endif
 autocmd BufRead rfc*.txt.gz
 	\ setlocal keywordprg=:RFC iskeyword=a-z,A-Z,48-57,.,-,[,] |
 	\ nmap <buffer> <silent> gO :call search('^Table of Contents', 'bcs')<CR>
ommit/bin/cash/var.h?id=c6ed9f094658c0083d277e94ba48379df3aa6cbb&follow=1'>Add PS0June McEnroe 2019-01-13Change default ENV from cashrc to env.shJune McEnroe 2019-01-13Use colours in cash promptsJune McEnroe 2019-01-12Set PSlit like NetBSD shJune McEnroe 2019-01-12Install gnupg2 from pkgsrc and symlink gpgJune McEnroe 2019-01-12Reference cash builtin man pages in cash.1 SEE ALSOJune McEnroe 2019-01-12Restore cash builtin man page datesJune McEnroe 2019-01-12Use local libeditJune McEnroe 2019-01-12Replace libedit MakefileJune McEnroe 2019-01-11Import /usr/src/lib/libedit from NetBSD 8.0June McEnroe 2019-01-11Add PSlit for prompt escapesJune McEnroe 2019-01-11Don't make depend automaticallyJune McEnroe