summary refs log tree commit diff
path: root/home/.config/nvim
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-18 23:49:12 -0500
committerJune McEnroe <june@causal.agency>2020-12-18 23:49:12 -0500
commit6c77cde8c2be0fd0216915f09d601115dd1a053a (patch)
tree4adc31aa9dc30cb2d0c5fe85f18ec98ce9df8955 /home/.config/nvim
parentAdd scripts to download, compress and tag IETF RFCs (diff)
downloadsrc-6c77cde8c2be0fd0216915f09d601115dd1a053a.tar.gz
src-6c77cde8c2be0fd0216915f09d601115dd1a053a.zip
Add :RFC vim command to view IETF RFCs
This sets iskeyword so that ^] will work for the kinds of tags generated
by rfctags.pl, and keywordprg so that K on another RFC number will view
that one. It also binds gO to jump to the table of contents of the RFC.
Diffstat (limited to 'home/.config/nvim')
-rw-r--r--home/.config/nvim/init.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 9245ccf4..d4bad8eb 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -35,3 +35,8 @@ nmap <leader>a m':0/^#include <<CR>:nohlsearch<CR>O#include <
 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
+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>
750d09cd&follow=1'>Set X key repeat rateJune McEnroe 2021-02-07Bump font size to 12June McEnroe 11 is what I use on macOS, but I feel like my eyes are working harder here. 2021-02-07Fully configure and rebind cwmJune McEnroe This is sort of a mix of trying to emulate macOS somewhat for my muscle memory and just rebinding some of the cwm defaults to use 4- rather than M-. 2021-02-07Add BintiJune McEnroe 2021-02-07Finish configuring xtermJune McEnroe 2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe 2021-02-06Set root window to black on purple snowJune McEnroe 2021-02-06Add xmodmap configurationJune McEnroe 2021-02-06Add initial OpenBSD X configurationJune McEnroe cwm still needs a lot more rebinding, and I need to actually look at its other options. xterm definitely still needs some configuration, but I at least managed to get it to use a decent looking font. Very happy that OpenBSD includes Luxi Mono, which is what my usual font, Go Mono, is based on anyway. Still missing is xmodmap and such. 2021-02-06Add xterm output to schemeJune McEnroe