diff options
author | June McEnroe <june@causal.agency> | 2021-01-18 16:56:05 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-01-18 16:56:05 -0500 |
commit | 73f6b84e9cfd045d68e30727a57dbd94ad8ae397 (patch) | |
tree | a59c6c02b7d0240153c5bcb2ea56ae9f0c999b38 /doc/rfc/rfc.vim | |
parent | Publish "reusing tags" (diff) | |
download | src-73f6b84e9cfd045d68e30727a57dbd94ad8ae397.tar.gz src-73f6b84e9cfd045d68e30727a57dbd94ad8ae397.zip |
Don't compress RFCs, add rfc(1) command
Diffstat (limited to 'doc/rfc/rfc.vim')
-rw-r--r-- | doc/rfc/rfc.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/rfc/rfc.vim b/doc/rfc/rfc.vim index 2455d8a6..4649cdf5 100644 --- a/doc/rfc/rfc.vim +++ b/doc/rfc/rfc.vim @@ -1,5 +1,5 @@ if !exists('g:rfc_path') - let g:rfc_path = expand('<sfile>:h:h:h:h') . '/rfc' + let g:rfc_path = fnamemodify(exepath('rfc'), ':h:h') . '/share/rfc' endif function! s:RFC(number) @@ -8,7 +8,7 @@ function! s:RFC(number) else let number = '-index' endif - let path = expand(g:rfc_path . '/rfc' . number . '.txt.gz') + let path = expand(g:rfc_path . '/rfc' . number . '.txt') if filereadable(path) execute 'silent' 'noswapfile' 'view' path else @@ -26,5 +26,5 @@ endfunction command! -bar -nargs=? RFC call s:RFC(<q-args>) augroup RFC autocmd! - autocmd BufRead rfc*.txt.gz call s:BufRead() + autocmd BufRead rfc*.txt call s:BufRead() augroup END |