mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
runtime(man): disable the q mapping
fixes: #8210 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
" Maintainer: Jason Franklin <vim@justemail.net>
|
" Maintainer: Jason Franklin <vim@justemail.net>
|
||||||
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
" Maintainer: SungHyun Nam <goweol@gmail.com>
|
||||||
" Autoload Split: Bram Moolenaar
|
" Autoload Split: Bram Moolenaar
|
||||||
" Last Change: 2023 Mar 21
|
" Last Change: 2024 Jun 06 (disabled the q mapping, #8210)
|
||||||
|
|
||||||
" To make the ":Man" command available before editing a manual page, source
|
" To make the ":Man" command available before editing a manual page, source
|
||||||
" this script from your startup vimrc file.
|
" this script from your startup vimrc file.
|
||||||
@@ -39,14 +39,16 @@ if &filetype == "man"
|
|||||||
|
|
||||||
nnoremap <buffer> <silent> <c-]> :call dist#man#PreGetPage(v:count)<CR>
|
nnoremap <buffer> <silent> <c-]> :call dist#man#PreGetPage(v:count)<CR>
|
||||||
nnoremap <buffer> <silent> <c-t> :call dist#man#PopPage()<CR>
|
nnoremap <buffer> <silent> <c-t> :call dist#man#PopPage()<CR>
|
||||||
nnoremap <buffer> <silent> q :q<CR>
|
" Disabled, since this hides the ability to record a macro or use the
|
||||||
|
" command line window
|
||||||
|
" nnoremap <buffer> <silent> q :q<CR>
|
||||||
|
|
||||||
" Add undo commands for the maps
|
" Add undo commands for the maps
|
||||||
let b:undo_ftplugin = b:undo_ftplugin
|
let b:undo_ftplugin = b:undo_ftplugin
|
||||||
\ . '|silent! nunmap <buffer> <Plug>ManBS'
|
\ . '|silent! nunmap <buffer> <Plug>ManBS'
|
||||||
\ . '|silent! nunmap <buffer> <c-]>'
|
\ . '|silent! nunmap <buffer> <c-]>'
|
||||||
\ . '|silent! nunmap <buffer> <c-t>'
|
\ . '|silent! nunmap <buffer> <c-t>'
|
||||||
\ . '|silent! nunmap <buffer> q'
|
"\ . '|silent! nunmap <buffer> q'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if exists('g:ft_man_folding_enable') && (g:ft_man_folding_enable == 1)
|
if exists('g:ft_man_folding_enable') && (g:ft_man_folding_enable == 1)
|
||||||
|
Reference in New Issue
Block a user