diff options
author | June McEnroe <june@causal.agency> | 2020-12-21 17:59:16 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-12-21 17:59:16 -0500 |
commit | 0aaf713e5ea83908761964e121f617737bf76fde (patch) | |
tree | 7a2b797c12fdbd94fc167c8c1125d1b705baf4f3 | |
parent | Move rfc to doc/rfc (diff) | |
download | src-0aaf713e5ea83908761964e121f617737bf76fde.tar.gz src-0aaf713e5ea83908761964e121f617737bf76fde.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/Makefile | 10 | ||||
-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) |