runtime(man): disable the q mapping
Commit:
https://github.com/vim/vim/commit/6dcd7f1a4d6d216798963edce9de69d03092433f
Author: Christian Brabandt <[email protected]>
Date: Thu Jun 6 19:06:38 2024 +0200
runtime(man): disable the q mapping
fixes: https://github.com/vim/vim/issues/8210
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/ftplugin/man.vim b/runtime/ftplugin/man.vim
index a2c33bc36..91e8a8b78 100644
--- a/runtime/ftplugin/man.vim
+++ b/runtime/ftplugin/man.vim
@@ -3,7 +3,7 @@
" Maintainer: Jason Franklin <[email protected]>
" Maintainer: SungHyun Nam <[email protected]>
" 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
" 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-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
let b:undo_ftplugin = b:undo_ftplugin
\ . '|silent! nunmap <buffer> <Plug>ManBS'
\ . '|silent! nunmap <buffer> <c-]>'
\ . '|silent! nunmap <buffer> <c-t>'
- \ . '|silent! nunmap <buffer> q'
+ "\ . '|silent! nunmap <buffer> q'
endif
if exists('g:ft_man_folding_enable') && (g:ft_man_folding_enable == 1)
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1sFGw7-00E9wT-NU%40256bit.org.