Rearrange default settings and tweak some spacing.
This commit is contained in:
parent
2677c0a07f
commit
cc5fd99ce3
@ -60,6 +60,12 @@ endif"}}}
|
|||||||
if !exists('g:gundo_help')"{{{
|
if !exists('g:gundo_help')"{{{
|
||||||
let g:gundo_help = 1
|
let g:gundo_help = 1
|
||||||
endif"}}}
|
endif"}}}
|
||||||
|
if !exists("g:gundo_map_move_older")"{{{
|
||||||
|
let g:gundo_map_move_older = 'j'
|
||||||
|
endif"}}}
|
||||||
|
if !exists("g:gundo_map_move_newer")"{{{
|
||||||
|
let g:gundo_map_move_newer = 'k'
|
||||||
|
endif"}}}
|
||||||
|
|
||||||
"}}}
|
"}}}
|
||||||
|
|
||||||
@ -426,14 +432,8 @@ endfunction"}}}
|
|||||||
"{{{ Gundo buffer settings
|
"{{{ Gundo buffer settings
|
||||||
|
|
||||||
function! s:GundoMapGraph()"{{{
|
function! s:GundoMapGraph()"{{{
|
||||||
if !exists("g:gundo_map_move_older")
|
exec 'nnoremap <script> <silent>' . g:gundo_map_move_older . " :call <sid>GundoMove(1)<CR>"
|
||||||
let g:gundo_map_move_older = 'j'
|
exec 'nnoremap <script> <silent>' . g:gundo_map_move_newer . " :call <sid>GundoMove(-1)<CR>"
|
||||||
endif
|
|
||||||
if !exists("g:gundo_map_move_newer")
|
|
||||||
let g:gundo_map_move_newer = 'k'
|
|
||||||
endif
|
|
||||||
exec 'nnoremap <script> <silent>'.g:gundo_map_move_older." :call <sid>GundoMove(1)<CR>"
|
|
||||||
exec 'nnoremap <script> <silent>'.g:gundo_map_move_newer." :call <sid>GundoMove(-1)<CR>"
|
|
||||||
nnoremap <script> <silent> <buffer> <CR> :call <sid>GundoRevert()<CR>
|
nnoremap <script> <silent> <buffer> <CR> :call <sid>GundoRevert()<CR>
|
||||||
nnoremap <script> <silent> <buffer> o :call <sid>GundoRevert()<CR>
|
nnoremap <script> <silent> <buffer> o :call <sid>GundoRevert()<CR>
|
||||||
nnoremap <script> <silent> <buffer> <down> :call <sid>GundoMove(1)<CR>
|
nnoremap <script> <silent> <buffer> <down> :call <sid>GundoMove(1)<CR>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user