From abe6b9e8d18fb3f4f5cd12b25211c354c9e6229a Mon Sep 17 00:00:00 2001 From: Pablo Hernandez-Cerdan Date: Wed, 5 Apr 2017 18:31:57 +1200 Subject: [PATCH 1/2] Patch v0.16 2016-11-01 http://www.vim.org/scripts/script.php?script_id=4582 --- autoload/conque_gdb.vim | 5 +++-- doc/conque_term.txt | 5 +++++ plugin/conque_term.vim | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/autoload/conque_gdb.vim b/autoload/conque_gdb.vim index 5269974..932e033 100644 --- a/autoload/conque_gdb.vim +++ b/autoload/conque_gdb.vim @@ -328,7 +328,8 @@ function! s:get_unix_gdb() return '' endif - sil let l:gdb_py_support = system(l:gdb_exe . ' -q -batch -ex "python print(\"PYYES\")"') + let pyresp = "'PYYES'" + sil let l:gdb_py_support = system(l:gdb_exe . ' -q -batch -ex "python print(' . pyresp . ')"') if l:gdb_py_support =~ ".*PYYES\n.*" " Gdb has python support let g:conque_gdb_gdb_py_support = 1 @@ -430,7 +431,7 @@ function! conque_gdb#open(...) let s:is_gdb_startup = 1 try let s:gdb = conque_term#open(l:gdb_cmd, l:start_cmds, get(a:000, 2, 0), get(a:000, 3, 1), s:term_object) - sil exe 'file ConqueGDB\#' . s:gdb.idx + sil exe 'file ConqueGDB\#' . s:gdb.idx catch endtry let s:is_gdb_startup = 0 diff --git a/doc/conque_term.txt b/doc/conque_term.txt index 78db960..25d9920 100644 --- a/doc/conque_term.txt +++ b/doc/conque_term.txt @@ -36,6 +36,7 @@ Contents 3.1.10 The bell Vim message |ConqueTerm_ShowBell| 3.1.11 Unfocused update time |ConqueTerm_UnfocusedUpdateTime| 3.1.12 Focused update time |ConqueTerm_FocusedUpdateTime| + 3.1.13 Pasting text |ConqueTermPaste| 3.2 Keyboard |conque-keyboard| 3.3.1 The key |ConqueTerm_EscKey| 3.3.2 The mapping |ConqueTerm_Interrupt| @@ -329,6 +330,10 @@ mode. > let g:ConqueTerm_FocusedUpdateTime = 80 > +3.1.13 Pasting *ConqueTermPaste* + +Use the ConqueTermPaste command to paste the previously yanked text. + 3.2 Keyboard *conque-config-keyboard* 3.2.1 The key *ConqueTerm_EscKey* diff --git a/plugin/conque_term.vim b/plugin/conque_term.vim index 0f51188..da8f06c 100644 --- a/plugin/conque_term.vim +++ b/plugin/conque_term.vim @@ -235,4 +235,7 @@ endif " }}} +" Command for pasting contents of previous register. +command! -nargs=0 ConqueTermPaste sil exe ':normal a' . @" + " vim:foldmethod=marker From 29d6e9684a6ccbe911d1f30a0d35f2b1aefecb43 Mon Sep 17 00:00:00 2001 From: Pablo Hernandez-Cerdan Date: Wed, 5 Apr 2017 19:06:28 +1200 Subject: [PATCH 2/2] Add command :ConqueClip to paste from + register. --- plugin/conque_term.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugin/conque_term.vim b/plugin/conque_term.vim index da8f06c..87f6d1e 100644 --- a/plugin/conque_term.vim +++ b/plugin/conque_term.vim @@ -237,5 +237,7 @@ endif " Command for pasting contents of previous register. command! -nargs=0 ConqueTermPaste sil exe ':normal a' . @" +" Command for pasting contents of clipboard register: +. +command! -nargs=0 ConqueClip sil exe ':normal a' . @+ " vim:foldmethod=marker