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..87f6d1e 100644 --- a/plugin/conque_term.vim +++ b/plugin/conque_term.vim @@ -235,4 +235,9 @@ 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