today's offers - xanax use in pregnancy xanax xr be abused soma internet pharmacies fedex soma without priscription fed ex phentermine parkinson drugs phentermine baclofen tramadol together ordering tramadol cod viagra find search 76k cialis pages cialis buy on line viagra for sale without a prescription buy onlinecom phentermine viagra ambien and klonopin drug interaction buy ambien overnight cheap online pharmacies valium saturday delivery valium online with no prescription or membership fioricet overnight no rx cheap fioricet without a prescription order meridia cod fedex meridia cheap fed ex delivery xanax bradycardia what does xanax look like american soma how to buy soma online without prescriptin phentermine overnight echeck c o d 375 mg phentermine rss feed cheap no prescription tramadol stop the tramadol generic prices online cialis generic cialis fedex chinese herbal viagra taking partial pill of viagra ambien and pregnancy smoking ambien cod online valium buy cheap valium without prescription no prescription fioricet with fedex fioricet without prescription in Brasilia order meridia meridia information

vim 自動補全(autocomplete)


在vim7 後有Omni completion這個功能….
星期五在看othree blog
看到他寫的vim 自動補全

之前看的時後一直沒有太大的衝勁驅始我去用這個功能,也就不放在心上..

而星期五不知道怎麼樣心血來潮..
就仔細看了一下他寫的部份..自已try 了一下………

所以稍為筆記一下….

目前看來是須要裝…
supertab, 和抓phpcomplete.vim(for php)這個檔案來用

supertab 就是用tab 來觸發omni 的自動完成
phpcomplete.vim 就是for php 的自動完成的範本….(不知道這樣形容對不對) PS:這個在$VIMRUNTIME/autoload 下就有了…….

我在vimrc 加入了以下設定

"這是我設定自動完成的選項...基本上有四種...可以看一下vim doc 的options 有寫到..
set completeopt=longest,menu
"這是快捷鍵.....不然每次按^x ^o 很麻煩..
imap <c -L> </c><c -x></c><c -o>

使用方法就是….
開xxx.php後
先^L 然後就會啟動omni 了
接下來按tab 就會自動補齊了…..

REF:

http://wiki.geckos.cn/index.php/Vim%E4%B8%AD%E7%9A%84%E4%BB%A3%E7%A0%81%E8%A1%A5%E5%85%A8

http://blog.othree.net/log/vim/

  1. No comments yet.
(will not be published)

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word