| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- let s:save_cpo = &cpo
- set cpo&vim
- if exists('g:Mundo_PluginLoaded')
- finish
- endif
- function! mundo#util#set_default(var, val, ...) "{{{
- if !exists(a:var)
- let {a:var} = a:val
- endif
- let old_var = get(a:000, 0, '')
- if exists(old_var)
- echohl WarningMsg
- echomsg "{".old_var."}is deprecated! Please change your setting to {"
- \.split(old_var,':')[0]
- \.':'
- \.substitute(split(old_var,':')[1],'gundo_','mundo_','g')
- \.'}'
- echohl None
- endif
- endfunction"}}}
- call mundo#util#set_default(
- \ 'g:mundo_python_path_setup', 0,
- \ 'g:gundo_python_path_setup')
- call mundo#util#set_default(
- \ 'g:mundo_first_visible_line', 0,
- \ 'g:gundo_first_visible_line')
- call mundo#util#set_default(
- \ 'g:mundo_last_visible_line', 0,
- \ 'g:gundo_last_visible_line')
- call mundo#util#set_default(
- \ 'g:mundo_width', 45,
- \ 'g:gundo_width')
- call mundo#util#set_default(
- \ 'g:mundo_preview_height', 15,
- \ 'g:gundo_preview_height')
- call mundo#util#set_default(
- \ 'g:mundo_preview_bottom', 0,
- \ 'g:gundo_preview_bottom')
- call mundo#util#set_default(
- \ 'g:mundo_right', 0,
- \ 'g:gundo_right')
- call mundo#util#set_default(
- \ 'g:mundo_help', 0,
- \ 'g:gundo_help')
- call mundo#util#set_default(
- \ 'g:mundo_map_move_older', 'j',
- \ 'g:gundo_map_move_older')
- call mundo#util#set_default(
- \ 'g:mundo_map_move_newer', 'k',
- \ 'g:gundo_map_move_newer')
- call mundo#util#set_default(
- \ 'g:mundo_close_on_revert', 0,
- \ 'g:gundo_close_on_revert')
- call mundo#util#set_default(
- \ 'g:mundo_prefer_python3', 0,
- \ 'g:gundo_prefer_python3')
- call mundo#util#set_default(
- \ 'g:mundo_auto_preview', 1,
- \ 'g:gundo_auto_preview')
- call mundo#util#set_default(
- \ 'g:mundo_verbose_graph', 1,
- \ 'g:gundo_verbose_graph')
- call mundo#util#set_default(
- \ 'g:mundo_playback_delay', 60,
- \ 'g:gundo_playback_delay')
- call mundo#util#set_default(
- \ 'g:mundo_mirror_graph', 0,
- \ 'g:gundo_mirror_graph')
- call mundo#util#set_default(
- \ 'g:mundo_inline_undo', 0,
- \ 'g:gundo_inline_undo')
- call mundo#util#set_default(
- \ 'g:mundo_return_on_revert', 1,
- \ 'g:gundo_return_on_revert')
- function! mundo#util#init() abort
- endfunction
- func! mundo#util#MundoToggle()
- echohl WarningMsg
- echomsg "GundoToggle commands are deprecated. Please change to their corresponding MundoToggle command"
- echohl None
- endf
- func! mundo#util#MundoShow()
- echohl WarningMsg
- echomsg "GundoShow commands are deprecated. Please change to their corresponding MundoShow command"
- echohl None
- endf
- func! mundo#util#MundoHide()
- echohl WarningMsg
- echomsg "GundoHide commands are deprecated. Please change to their corresponding MundoHide command"
- echohl None
- endf
- func! mundo#util#MundoRenderGraph()
- echohl WarningMsg
- echomsg "GundoRenderGraph commands are deprecated. Please change to their corresponding MundoRenderGraph command"
- echohl None
- endf
- let g:Mundo_PluginLoaded = 1
- let &cpo = s:save_cpo
- unlet s:save_cpo
|