使用VIM編寫程序,發(fā)現(xiàn)切換頭文件和代碼文件很麻煩,發(fā)現(xiàn)一個好東西A.vim,具體使用參數(shù)如下:
A switches to the header file corresponding to the current file being edited (or vise versa)
:AS splits and switches
:AV vertical splits and switches
:AT new tab and switches
:AN cycles through matches
:IH switches to file under cursor
:IHS splits and switches
:IHV vertical splits and switches
:IHT new tab and switches
:IHN cycles through matches
<Leader>ih switches to file under cursor
<Leader>is switches to the alternate file of file under cursor (e.g. on??<foo.h> switches to foo.cpp)
<Leader>ihn cycles through matches
下載地址如下:http://www.vim.org/scripts/script.php?script_id=31
下載后放到/usr/share/vim/vim61/plugin/就可以了,如果啟動時候有錯誤,就下載一個老一點的版本.