# Vim FAQ ##### Err: A line cannot be longer than 2048 characters. 這是因為 VI 的每一行字數不可超過 2048 字元,遇到時可以將超過字數的行刪除,另存一個檔。 ``` cut -c1-2047 before.log > after.log ``` ##### 開啟 3X MB 檔案時出現錯誤 > ex: 0602-101 Out of memory saving lines for undo. ``` # the number must be less than 8 digits. vi -y 99999999 your-file ``` ##### 自動縮排問題 貼上文字後,因為自動縮排(autoindent)因素,導致內容編排錯亂。 Solution: 貼上文字前先執行 `:set paste` ##### 0602-140 The window is too small to display the current line. AIX 開啟有單行過長檔案時,會出現錯誤。 Solution: 1. 將 putty 視窗最大化以及調整字型大小到 9 試試。 2. 安裝 Vim 取代 Vi。 ##### Unable to paste from clipboard on AIX 在 Windows 複製後,無法在 putty 使用滑鼠貼上內容。 Solution: `:set mouse=v`