mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +00:00
man.vim: buffers are now listed
- Since the names are set and ':vsplit printf(3)' work, there is no need to unlist them.
This commit is contained in:
committed by
Anmol Sethi (nhooyr)
parent
e89eb5d21b
commit
e8a3477dc7
@@ -25,7 +25,6 @@ endif
|
||||
setlocal buftype=nofile
|
||||
setlocal noswapfile
|
||||
setlocal bufhidden=hide
|
||||
setlocal nobuflisted
|
||||
setlocal nomodified
|
||||
setlocal readonly
|
||||
setlocal nomodifiable
|
||||
|
||||
@@ -12,8 +12,4 @@ nnoremap <silent> <Plug>(Man) :<C-U>call man#open_page(v:count, v:count1, &filet
|
||||
augroup man
|
||||
autocmd!
|
||||
autocmd BufReadCmd man://* call man#read_page(matchstr(expand('<amatch>'), 'man://\zs.*'))
|
||||
" Need this because without it, if you do ':Man printf(3)' and then later,
|
||||
" open a session that contains a buffer named 'man://printf(3)', the buffer
|
||||
" will become listed.
|
||||
autocmd BufEnter man://* set nobuflisted
|
||||
augroup END
|
||||
|
||||
Reference in New Issue
Block a user