Using Mac OS X for the past few days for my work, i notice my arrow key not working in vi editor. One of my colleague help me to solve this arrow key problem in vi.
Here’s the solution for those who has arrow key not working in vi / vim for Mac OS:-
Advertisements
- Go to your home directory, mine is at /Users/myname/
- Open your .profile and add TERM=linux at the first line of the file.
- Save and quit
- type source .profile and enter
- You just fixed the arrow key problem in vi editor. Arrow key should be working by now.
[tags]arrow key problem in vi, mac os arrow key problem in vi, mac os vi, mac os x, vi arrow key problem[/tags]
Related posts:
How to convert Keynote (.key) to Power Point (ppt)
How to open .rar file in Mac OS X
How to format external hard disk for Mac and Windows
Mac RDP to Win 8.1 error - Remote Desktop Connection cannot verify the identity of the computer that...
How to enable email notification in Adium?
Secure file transfer thru scp in Mac and Linux
How to force quit program in Mac OS X
How to turn on Firewall in Mac?
Share this with your friends:-
Does this work on Solaris 10?
Thanks for your help… it worked…
For the record, if you find that your .profile file does not exist then just go ahead and create it and it should work fine (it did for me)