summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-12-21 17:59:16 -0500
committerJune McEnroe <june@causal.agency>2020-12-21 17:59:16 -0500
commit6eabe3212a481dd8fc272fc68bc38c0c61949c63 (patch)
tree6b444f1c01cecdef9f70a685bbabb25c14d45d75 /doc
parentMove rfc to doc/rfc (diff)
downloadsrc-6eabe3212a481dd8fc272fc68bc38c0c61949c63.tar.gz
src-6eabe3212a481dd8fc272fc68bc38c0c61949c63.zip
Move rfc.vim to doc/rfc
That default path is a bit wonky, but it prevents having to template
rfc.vim for basically no reason.
Diffstat (limited to '')
-rw-r--r--doc/rfc/Makefile10
-rw-r--r--doc/rfc/rfc.vim (renamed from home/.config/nvim/plugin/rfc.vim)2
2 files changed, 11 insertions, 1 deletions
diff --git a/doc/rfc/Makefile b/doc/rfc/Makefile
index a629782d..87462a6c 100644
--- a/doc/rfc/Makefile
+++ b/doc/rfc/Makefile
@@ -1,3 +1,5 @@
+PREFIX ?= ~/.local
+
 MODULE = ftp.rfc-editor.org::rfcs-text-only
 
 tags: rfctags.pl rfc-index.txt.gz
@@ -9,3 +11,11 @@ rfc-index.txt.gz:
 
 clean:
 	rm -f tags *.txt *.txt.gz
+
+install: tags rfc.vim
+	install -d ${PREFIX}/share/rfc ${PREFIX}/share/nvim/site/plugin
+	ln -f tags *.txt.gz ${PREFIX}/share/rfc
+	install -m 644 rfc.vim ${PREFIX}/share/nvim/site/plugin
+
+uninstall:
+	rm -fr ${PREFIX}/share/rfc ${PREFIX}/share/nvim/site/plugin/rfc.vim
diff --git a/home/.config/nvim/plugin/rfc.vim b/doc/rfc/rfc.vim
index e04d02eb..56d2085c 100644
--- a/home/.config/nvim/plugin/rfc.vim
+++ b/doc/rfc/rfc.vim
@@ -1,5 +1,5 @@
 if !exists('g:rfc_path')
-	let g:rfc_path = '~/src/doc/rfc'
+	let g:rfc_path = expand('<sfile>:h:h:h:h') . '/rfc'
 endif
 
 function! s:RFC(number)
>git: update to v2.21.0Christian Hesse 2019-06-05ui-ssdiff: ban strncat()Christian Hesse 2019-06-05global: make 'char *path' const where possibleChristian Hesse 2019-05-20ui-shared: restrict to 15 levelsJason A. Donenfeld 2019-02-23ui-diff,ui-tag: don't use htmlf with non-formatted stringsChris Mayo 2019-02-23ui-ssdiff: resolve HTML5 validation errorsChris Mayo 2019-01-03filters: migrate from luacrypto to luaosslJason A. Donenfeld 2019-01-02ui-shared: fix broken sizeof in title setting and rewriteJason A. Donenfeld 2018-12-09git: update to v2.20.0Christian Hesse 2018-11-25ui-blame: set repo for sbJason A. Donenfeld 2018-11-25auth-filter: pass url with query string attachedJason A. Donenfeld 2018-11-21git: use xz compressed archive for downloadChristian Hesse 2018-10-12git: update to v2.19.1Christian Hesse 2018-09-11ui-ssdiff: ban strcat()Christian Hesse 2018-09-11ui-ssdiff: ban strncpy()Christian Hesse 2018-09-11ui-shared: ban strcat()Christian Hesse 2018-09-11ui-patch: ban sprintf()Christian Hesse 2018-09-11ui-log: ban strncpy()Christian Hesse 2018-09-11ui-log: ban strcpy()Christian Hesse 2018-09-11parsing: ban sprintf()Christian Hesse 2018-09-11parsing: ban strncpy()Christian Hesse 2018-08-28filters: generate anchor links from markdownChristian Hesse 2018-08-03Bump version.Jason A. Donenfeld 2018-08-03clone: fix directory traversalJason A. Donenfeld 2018-08-03config: record repo.snapshot-prefix in the per-repo configKonstantin Ryabitsev