Skip to content

[tweak] guard mappings behind config flag #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

b0o
Copy link

@b0o b0o commented Apr 7, 2020

Use let g:no_man_maps = 1 to disable default mappings so you can define your own.

Follows the same pattern used by the ftplugin/man.vim file distributed with {neo,}vim.

Use `let g:no_man_maps = 1` to disable default mappings so you can
define your own.

nnoremap <silent> <buffer> q :q<CR>
nnoremap <buffer> g/ /^\s*\zs
if !exists('g:no_plugin_maps') && !exists('g:no_man_maps')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it would make more sense to use a different global variable than the one vim's bundled man.vim uses?

njhoffman added a commit to njhoffman/vim-man that referenced this pull request Nov 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant