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 | 3ad036b9a04811da71977fac5dc7ab6971f622bc (patch) | |
tree | cf8d976262922ce59df5b2053c385a64e86c9e10 /doc/rfc/rfc.vim | |
parent | Publish "reusing tags" (diff) | |
download | src-3ad036b9a04811da71977fac5dc7ab6971f622bc.tar.gz src-3ad036b9a04811da71977fac5dc7ab6971f622bc.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 |