[英]Vim commands running in bash after I run a python file
運行python單元測試文件后出現問題。 一旦文件退出,我只能在按“ i”並使用其他vim鍵盤綁定后與控制台進行交互。 我還注意到,使用箭頭鍵遍歷輸入的內容將在行尾刪除隨機數的字符。
EX:
$ ./tests.py -v
<output>
$ <cannot type>
<press "i">
$ I can now type
<press <- >
$ I can no
我正在使用RHEL 7和bash。 我已經嘗試使用Google搜索該問題,但是我對問題的格式設置不佳,或者是一個不常見的問題。
感謝您的幫助。
編輯:
實際的test.py包含私有代碼,但這是包含相同基本代碼的示例。
test.py
#!/usr/bin/env python
import unittest
class TestUtil(unittest.TestCase):
def test_hello_world(self):
text = "Hello World!"
self.assertEqual("Hello World!", text)
print(text)
pass
if __name__ == '__main__':
unittest.main()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.