解決在 iTerm 使用 Vi 方向箭問題

看來以後還是得改變po文章的習慣. 我是個很懶惰的人. 把別人弄好的文章直接貼在我的blog上. 現在好拉. 有人抗議了. 那就自己寫摟

在 foohack.com 的網頁內.我學到如何解決 iTerm Vi 方向箭問題. 簡單來說 就是要下 set term=linux 這個命令. 當然每次在命令列下. 會很麻煩. 所以可以在. ~/.exrc 和 ~/.vimrc 檔案內加入 set term=linu

# cat .exrc
set term=linux

# cat .vimrc
set term=linux

這樣在進去使用 Vi 就沒問題了.

參考 : http://foohack.com/2007/09/fix-for-vis-broken-arrow-key-support-in-iterm/

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.