summary refs log tree commit diff
path: root/doc/rfc/rfc.vim
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-03-06 01:38:42 -0500
committerJune McEnroe <june@causal.agency>2021-03-06 01:38:42 -0500
commit50f57e26358ae4d0d57ac9f985dde8521857cf65 (patch)
tree3f9b5385cc6caa3e837f428beaa2aa8b6021f28f /doc/rfc/rfc.vim
parentPublish "Mailing List" (diff)
downloadsrc-50f57e26358ae4d0d57ac9f985dde8521857cf65.tar.gz
src-50f57e26358ae4d0d57ac9f985dde8521857cf65.zip
Remove rfc.vim
I don't use neovim regularly anymore and I prefer rfc as an analog
to man.
Diffstat (limited to 'doc/rfc/rfc.vim')
-rw-r--r--doc/rfc/rfc.vim30
1 files changed, 0 insertions, 30 deletions
diff --git a/doc/rfc/rfc.vim b/doc/rfc/rfc.vim
deleted file mode 100644
index 4649cdf5..00000000
--- a/doc/rfc/rfc.vim
+++ /dev/null
@@ -1,30 +0,0 @@
-if !exists('g:rfc_path')
-	let g:rfc_path = fnamemodify(exepath('rfc'), ':h:h') . '/share/rfc'
-endif
-
-function! s:RFC(number)
-	if !empty(a:number)
-		let number = str2nr(matchstr(a:number, '\d\+'), 10)
-	else
-		let number = '-index'
-	endif
-	let path = expand(g:rfc_path . '/rfc' . number . '.txt')
-	if filereadable(path)
-		execute 'silent' 'noswapfile' 'view' path
-	else
-		echohl ErrorMsg | echo 'No such RFC' a:number | echohl None
-	endif
-endfunction
-
-function! s:BufRead()
-	setlocal readonly
-	setlocal keywordprg=:RFC
-	setlocal iskeyword=a-z,A-Z,48-57,.,[,],-,_
-	nmap <buffer> <silent> gO :call search('^Table of Contents', 'bcs')<CR>
-endfunction
-
-command! -bar -nargs=? RFC call s:RFC(<q-args>)
-augroup RFC
-	autocmd!
-	autocmd BufRead rfc*.txt call s:BufRead()
-augroup END