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(-) 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 b395d5cea1175c5b1aa7a3d6c0693bc456'>refs log tree commit diff
Commit message (Expand)Author
2020-06-16Add LC_COLLATE=C to ls aliasJune McEnroe
2020-06-11Fix pbd for neovimJune McEnroe
2020-06-11Alias sudo=doas if availableJune McEnroe
2020-06-11Add all VMs to ssh configJune McEnroe
2020-06-08Add additional permission for linking with LibreSSLJune McEnroe
2020-06-08Replace __DECONST with regular castsJune McEnroe
2020-06-08Replace __printflike with __attribute__((format(printf, ...)))June McEnroe
2020-06-08Replace __dead2 with __attribute__((noreturn))June McEnroe
2020-06-08Replace __FBSDID macros with commentsJune McEnroe
2020-06-08Remove reference to FreeBSD-specific libedit hackJune McEnroe
2020-06-08Prefix mandoc with exec in about-filterJune McEnroe
2020-06-07Remove mktemp options from mkbuiltins, mktokensJune McEnroe
2020-06-07Cast z_stream fields to size_tJune McEnroe
2020-06-07Call static_assert by _Static_assertJune McEnroe
2020-06-07Add OpenBSD to install.shJune McEnroe
2020-06-03Add The Song of AchillesJune McEnroe
2020-06-01Allow redirecting input in everJune McEnroe
2020-05-31Add %c conversion to c scriptJune McEnroe
2020-05-31Add c script to READMEJune McEnroe
2020-05-31Add c scriptJune McEnroe
2020-05-31Update mdoc source URLsJune McEnroe
2020-05-26Remove unfinished PSF fontsJune McEnroe