mirror of
https://github.com/junegunn/vim-plug.git
synced 2024-12-23 20:45:31 -07:00
Add o
key binding for PlugDiff
This commit is contained in:
parent
77f58a3793
commit
fc200da975
2
plug.vim
2
plug.vim
@ -606,6 +606,7 @@ function! s:prepare()
|
|||||||
endif
|
endif
|
||||||
silent! unmap <buffer> <cr>
|
silent! unmap <buffer> <cr>
|
||||||
silent! unmap <buffer> L
|
silent! unmap <buffer> L
|
||||||
|
silent! unmap <buffer> o
|
||||||
silent! unmap <buffer> X
|
silent! unmap <buffer> X
|
||||||
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap cursorline modifiable
|
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap cursorline modifiable
|
||||||
setf vim-plug
|
setf vim-plug
|
||||||
@ -1535,6 +1536,7 @@ function! s:diff()
|
|||||||
|
|
||||||
call setline(1, cnt == 0 ? 'No updates.' : 'Last update:')
|
call setline(1, cnt == 0 ? 'No updates.' : 'Last update:')
|
||||||
nnoremap <silent> <buffer> <cr> :silent! call <SID>preview_commit()<cr>
|
nnoremap <silent> <buffer> <cr> :silent! call <SID>preview_commit()<cr>
|
||||||
|
nnoremap <silent> <buffer> o :silent! call <SID>preview_commit()<cr>
|
||||||
nnoremap <silent> <buffer> X :call <SID>revert()<cr>
|
nnoremap <silent> <buffer> X :call <SID>revert()<cr>
|
||||||
normal! gg
|
normal! gg
|
||||||
setlocal nomodifiable
|
setlocal nomodifiable
|
||||||
|
Loading…
Reference in New Issue
Block a user