在另一个ConEmu选项卡中从Vim启动ipdb

正在努力从Vim启动另一个ConEmu Tab

我的程序是:

  1. Vim是从ConEmu启动的
  2. 从Vim中发出命令以打开新标签页并启动ipdb。

我的想法是:

:silent !ConEmu.exe /cmd {Something here to initiate python -m ipdb %?} -new_console:s

但没有成功。

使用此命令:

:silent !ConEmu.exe /cmd -new_console:s

另一个标签随以下消息一起打开-
ConEmuC: Root process was alive less that 10 sec,ExitCode=1

shuishuiwoai 回答:在另一个ConEmu选项卡中从Vim启动ipdb

简单地做就足够了

order = [1,2,3,0] # setting column's order
df = df[[df.columns[i] for i in order]]

也阅读:silent !start python -m ipdb

,

嗯,那不完全是我要的(尽管我的问题中没有明确说明)-但这很有帮助。它正在打开分层窗口,我想与我的vim并排。但是,也为我加油,我终于设法使你成功了:

:silent !start cmd.exe /c -new_console:s python -m ipdb %

此命令与vim并排打开新标签页

这是我在_vimrc中所做的:

"python with virtualenv support                                                                                        
let pipenv_venv_path = system('pipenv --venv')                                                                         
" The above system() call produces a non zero exit code whenever                                                       
" a proper virtual environment has not been found.                                                                     
if shell_error == 0                                                                                                    
  let venv_path = substitute(pipenv_venv_path,'\n','','')                                                           
  let py_binary = venv_path . '/Scripts/python.exe'                                                                    
else                                                                                                                   
  let py_binary = 'python.exe'                                                                                         
endif                                                                                                                  

"map F10 to execute ipdb in separate split Tab in ConEmu:                                                              
nnoremap <silent> <expr> <F10> '<ESC>:w!<CR>:!start cmd.exe /c -new_console:s ' . expand(py_binary)  . ' -m ipdb %<CR>'

感谢您的帮助!

本文链接:https://www.f2er.com/3134247.html

大家都在问