I tried to use the python autocomplete in vim and setting the environment in ~/.bashrc,then it works in shell . but not works when i opening gvim from a window.find it on line and i get some useful information: When you are launching gvim from
from ; http://blog.csdn.net/carolzhang8406/article/details/6117593摘自維基百科http://zh.wikipedia.org/wiki/VimVim是從 vi 發展出來的一個文字編輯器。代碼補完、編譯及錯誤跳轉等方便編程的功能特別豐富,在程式員中被廣泛使用。和Emacs並列成為類Unix系統使用者最喜歡的編輯器。Vim的第一個版本由Bram Moolenaar在1991年發布。最初的簡稱是Vi IMitation
我使用的是Ubuntu 12.04,在使用vim開啟file類型為:“ISO-8859 C program text“的檔案時,裡面的中文是亂碼,這是因為vim不能自動識別檔案的編碼類別型,需要修改vim的配置,可以修改/etc/vim/vimrc,也可以修改~/.vimrc,我只對目前使用者生效,所以修改後者,加入如下內容:set fencs=utf-8,GB18030,ucs-bom,default,latin1退出並儲存,亂碼情況解決。
-- Help --------------------------------------------------------------- \hm show manual for word under the cursor (n,i) \hp show plugin help (n,i) -- Comments -------------------------------------------------------
按照上一篇的步驟安裝外掛程式,結果出現了幾個問題(1)無法識別標籤命令:Error detected while processing /usr/share/vim/vimrc:line 57:E475: Invalid argument: on line 65:E492: Not an editor command: <a0><a0><a0>line 66:E475: Invalid argument: on line 67:E15:
在 Vim 中,有四個與編碼有關的選項,它們是:fileencodings、fileencoding、encoding 和 termencoding。在實際使用中,任何一個選項出現錯誤,都會導致出現亂碼。因此,每一個 Vim 使用者都應該明確這四個選項的含義。下面,我們詳細介紹一下這四個選項的含義和作用。1 encodingencoding 是 Vim 內部使用的字元編碼方式。當我們設定了 encoding 之後,Vim 內部所有的