Mercurial > vim
comparison runtime/pack/dist/opt/termdebug/plugin/termdebug.vim @ 20552:74e3316c1d5a
Update runtime files
Commit: https://github.com/vim/vim/commit/388a5d4f20b4b64341d1604aa238cab85827b892
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 26 21:20:45 2020 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 26 May 2020 21:30:04 +0200 |
parents | a7a24d06d7ce |
children | 83cfa1ef1bf2 |
comparison
equal
deleted
inserted
replaced
20551:f1b23a9643fe | 20552:74e3316c1d5a |
---|---|
1 " Debugger plugin using gdb. | 1 " Debugger plugin using gdb. |
2 " | 2 " |
3 " Author: Bram Moolenaar | 3 " Author: Bram Moolenaar |
4 " Copyright: Vim license applies, see ":help license" | 4 " Copyright: Vim license applies, see ":help license" |
5 " Last Change: 2020 Feb 19 | 5 " Last Change: 2020 May 22 |
6 " | 6 " |
7 " WORK IN PROGRESS - Only the basics work | 7 " WORK IN PROGRESS - Only the basics work |
8 " Note: On MS-Windows you need a recent version of gdb. The one included with | 8 " Note: On MS-Windows you need a recent version of gdb. The one included with |
9 " MingW is too old (7.6.1). | 9 " MingW is too old (7.6.1). |
10 " I used version 7.12 from http://www.equation.com/servlet/equation.cmd?fa=gdb | 10 " I used version 7.12 from http://www.equation.com/servlet/equation.cmd?fa=gdb |
655 command Gdb call win_gotoid(s:gdbwin) | 655 command Gdb call win_gotoid(s:gdbwin) |
656 command Program call s:GotoProgram() | 656 command Program call s:GotoProgram() |
657 command Source call s:GotoSourcewinOrCreateIt() | 657 command Source call s:GotoSourcewinOrCreateIt() |
658 command Winbar call s:InstallWinbar() | 658 command Winbar call s:InstallWinbar() |
659 | 659 |
660 " TODO: can the K mapping be restored? | 660 if !exists('g:termdebug_map_K') || g:termdebug_map_K |
661 nnoremap K :Evaluate<CR> | 661 let s:k_map_saved = maparg('K', 'n', 0, 1) |
662 nnoremap K :Evaluate<CR> | |
663 endif | |
662 | 664 |
663 if has('menu') && &mouse != '' | 665 if has('menu') && &mouse != '' |
664 call s:InstallWinbar() | 666 call s:InstallWinbar() |
665 | 667 |
666 if !exists('g:termdebug_popup') || g:termdebug_popup != 0 | 668 if !exists('g:termdebug_popup') || g:termdebug_popup != 0 |
706 delcommand Gdb | 708 delcommand Gdb |
707 delcommand Program | 709 delcommand Program |
708 delcommand Source | 710 delcommand Source |
709 delcommand Winbar | 711 delcommand Winbar |
710 | 712 |
711 nunmap K | 713 if exists('s:k_map_saved') |
714 call mapset('n', 0, s:k_map_saved) | |
715 unlet s:k_map_saved | |
716 endif | |
712 | 717 |
713 if has('menu') | 718 if has('menu') |
714 " Remove the WinBar entries from all windows where it was added. | 719 " Remove the WinBar entries from all windows where it was added. |
715 let curwinid = win_getid(winnr()) | 720 let curwinid = win_getid(winnr()) |
716 for winid in s:winbar_winids | 721 for winid in s:winbar_winids |