Hot search terms: 360 Security Guard Office365 360 browser WPS Office iQiyi Huawei Cloud Market Tencent Cloud Store
operating system Storage: 1158720KB Time: 2014-04-22
Software Introduction: Ubuntu is a freely distributed and open source Linux-based operating system designed for humans, humans who have no previous experience with Linux...
When using the vi editor, vi is stuck. What is the reason for vi to be stuck? Let me share with you the solution to vi stuck. Friends who encounter similar situations can take a look.
After opening another terminal to enter and exit strace, I found that it was stuck in the connect function.
Process 12251 attached–interrupt to quit
connect(4, {sa_family=AF_FILE, path="/dev/gpmctl"...}, 13
Blocking occurred while connecting to /dev/gpmctl.
/dev/gpmctl is a mouse-related driver that provides mouse support for virtual terminals.
There are settings for this parameter in the .vimrc file:
“In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=a
endif
set mouse=a can be used normally when the terminal type is xterm, but will cause problems when the terminal is linux (gpm is not available).
Solution:
1) Comment out the setting
2) Change this setting:
if $TERM ! =”linux”
set mouse=a
endif
The above is the editor’s summary of the solutions to Linux vi often getting stuck. Have you also experienced stuck situations when using vi? Is it stuck in the connect function? You can try the method in this article to solve it.
How to turn off and start Thunder in Thunder 11? How to turn off and start Thunder in Thunder 11?
How to edit music clips in qq music How to edit music clips in qq music
Where to view information about Xunlei on Xunlei - How to view information about Xunlei on Xunlei
Where is the QQ Music music account? How to check the QQ Music music account
How to turn off music pets in QQ Music How to turn off music pets in QQ Music
What to do if there is no sound after reinstalling the computer system - Driver Wizard Tutorial
How to practice typing with Kingsoft Typing Guide - How to practice typing with Kingsoft Typing Guide
How to upgrade the bootcamp driver? How to upgrade the bootcamp driver
How to change QQ music skin? -QQ music skin change method
Driver President Download-How to solve the problem when downloading driver software is very slow