@@ -32,27 +32,30 @@ setlocal noswapfile
3232" }}}
3333" mappings {{{1
3434
35- nnoremap <silent> <buffer> K :call man#get_page_from_cword('horizontal', v:count)<CR>
36- " all tag mappings are defined for completeness and they all perform the same action
37- nnoremap <silent> <buffer> <C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
38- nnoremap <silent> <buffer> g<C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
39- nnoremap <silent> <buffer> g] :call man#get_page_from_cword('horizontal', v:count)<CR>
40- nnoremap <silent> <buffer> <C-W> ] :call man#get_page_from_cword('horizontal', v:count)<CR>
41- nnoremap <silent> <buffer> <C-W><C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
42- nnoremap <silent> <buffer> <C-W> g<C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
43- nnoremap <silent> <buffer> <C-W> g] :call man#get_page_from_cword('horizontal', v:count)<CR>
44- nnoremap <silent> <buffer> <C-W> } :call man#get_page_from_cword('horizontal', v:count)<CR>
45- nnoremap <silent> <buffer> <C-W> g} :call man#get_page_from_cword('horizontal', v:count)<CR>
46-
47- nnoremap <silent> <buffer> <C-T> :call man#pop_page()<CR>
48-
49- nnoremap <silent> <buffer> [[ :<C-U> call man#section#move('b', 'n', v:count1)<CR>
50- nnoremap <silent> <buffer> ]] :<C-U> call man#section#move('' , 'n', v:count1)<CR>
51- xnoremap <silent> <buffer> [[ :<C-U> call man#section#move('b', 'v', v:count1)<CR>
52- xnoremap <silent> <buffer> ]] :<C-U> call man#section#move('' , 'v', v:count1)<CR>
53-
54- nnoremap <silent> <buffer> q :q<CR>
55- nnoremap <buffer> g/ /^\s*\zs
35+ if ! exists (' g:no_plugin_maps' ) && ! exists (' g:no_man_maps' )
36+ nnoremap <silent> <buffer> K :call man#get_page_from_cword('horizontal', v:count)<CR>
37+ " all tag mappings are defined for completeness and they all perform the same action
38+ nnoremap <silent> <buffer> <C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
39+ nnoremap <silent> <buffer> g<C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
40+ nnoremap <silent> <buffer> g] :call man#get_page_from_cword('horizontal', v:count)<CR>
41+ nnoremap <silent> <buffer> <C-W> ] :call man#get_page_from_cword('horizontal', v:count)<CR>
42+ nnoremap <silent> <buffer> <C-W><C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
43+ nnoremap <silent> <buffer> <C-W> g<C-]> :call man#get_page_from_cword('horizontal', v:count)<CR>
44+ nnoremap <silent> <buffer> <C-W> g] :call man#get_page_from_cword('horizontal', v:count)<CR>
45+ nnoremap <silent> <buffer> <C-W> } :call man#get_page_from_cword('horizontal', v:count)<CR>
46+ nnoremap <silent> <buffer> <C-W> g} :call man#get_page_from_cword('horizontal', v:count)<CR>
47+
48+ nnoremap <silent> <buffer> <C-T> :call man#pop_page()<CR>
49+
50+ nnoremap <silent> <buffer> [[ :<C-U> call man#section#move('b', 'n', v:count1)<CR>
51+ nnoremap <silent> <buffer> ]] :<C-U> call man#section#move('' , 'n', v:count1)<CR>
52+ xnoremap <silent> <buffer> [[ :<C-U> call man#section#move('b', 'v', v:count1)<CR>
53+ xnoremap <silent> <buffer> ]] :<C-U> call man#section#move('' , 'v', v:count1)<CR>
54+
55+ nnoremap <silent> <buffer> q :q<CR>
56+ nnoremap <silent> <buffer> <esc> :q<CR>
57+ nnoremap <buffer> g/ /^\s*\zs
58+ endif
5659
5760" }}}
5861
0 commit comments