Merge pull request 66 from esneider

Closes #65.
Closes #66.
This commit is contained in:
Marco Hinz 2013-09-06 17:39:07 +02:00
commit f35b8dfac7

View File

@ -62,33 +62,33 @@ nnoremap <silent> <plug>(signify-toggle) :<c-u>call sy#toggle()<cr>
if exists('g:signify_mapping_next_hunk') if exists('g:signify_mapping_next_hunk')
execute 'nmap '. g:signify_mapping_next_hunk .' <plug>(signify-next-hunk)' execute 'nmap '. g:signify_mapping_next_hunk .' <plug>(signify-next-hunk)'
elseif !hasmapto('<plug>(signify-next-hunk)') && !maparg('<leader>gj', 'n') elseif !hasmapto('<plug>(signify-next-hunk)') && empty(maparg('<leader>gj', 'n'))
nmap <leader>gj <plug>(signify-next-hunk) nmap <leader>gj <plug>(signify-next-hunk)
endif endif
if exists('g:signify_mapping_prev_hunk') if exists('g:signify_mapping_prev_hunk')
execute 'nmap '. g:signify_mapping_prev_hunk .' <plug>(signify-prev-hunk)' execute 'nmap '. g:signify_mapping_prev_hunk .' <plug>(signify-prev-hunk)'
elseif !hasmapto('<plug>(signify-prev-hunk)') && !maparg('<leader>gk', 'n') elseif !hasmapto('<plug>(signify-prev-hunk)') && empty(maparg('<leader>gk', 'n'))
nmap <leader>gk <plug>(signify-prev-hunk) nmap <leader>gk <plug>(signify-prev-hunk)
endif endif
if exists('g:signify_mapping_toggle_highlight') if exists('g:signify_mapping_toggle_highlight')
execute 'nmap '. g:signify_mapping_toggle_highlight .' <plug>(signify-toggle-highlight)' execute 'nmap '. g:signify_mapping_toggle_highlight .' <plug>(signify-toggle-highlight)'
elseif !hasmapto('<plug>(signify-toggle-highlight)') && !maparg('<leader>gh', 'n') elseif !hasmapto('<plug>(signify-toggle-highlight)') && empty(maparg('<leader>gh', 'n'))
nmap <leader>gh <plug>(signify-toggle-highlight) nmap <leader>gh <plug>(signify-toggle-highlight)
endif endif
if exists('g:signify_mapping_toggle') if exists('g:signify_mapping_toggle')
execute 'nmap '. g:signify_mapping_toggle .' <plug>(signify-toggle)' execute 'nmap '. g:signify_mapping_toggle .' <plug>(signify-toggle)'
elseif !hasmapto('<plug>(signify-toggle)') && !maparg('<leader>gt', 'n') elseif !hasmapto('<plug>(signify-toggle)') && empty(maparg('<leader>gt', 'n'))
nmap <leader>gt <plug>(signify-toggle) nmap <leader>gt <plug>(signify-toggle)
endif endif
if !maparg(']c', 'n') if empty(maparg(']c', 'n'))
nmap ]c <plug>(signify-next-hunk) nmap ]c <plug>(signify-next-hunk)
endif endif
if !maparg('[c', 'n') if empty(maparg('[c', 'n'))
nmap [c <plug>(signify-prev-hunk) nmap [c <plug>(signify-prev-hunk)
endif endif