[vim ] AutoComplPop + SnipMate
AutoComplPop是自動跳出自動完成的plugin
SnipMate是蘋果textMate編輯器的複製版,鍵入關鍵字再按tab會自動完成
最棒的是,這兩個plugin還可以整合!
轉貼google group c9s大的文:
Cornelius
可參見 autocomplpop 的 help 文件,將
fun! GetSnipsInCurrentScope()
let snips = {}
for scope in [bufnr('%')] + split(&ft, '\.') + ['_']
call extend(snips, get(s:snippets, scope, {}), 'keep')
call extend(snips, get(s:multi_snips, scope, {}), 'keep')
endfor
return snips
endf
放入 plugin/snipMate.vim 內。
然後設定 g:acp_behaviorSnipmateLength 為 1
那麼開頭大寫的字母便會自動 trigger snipmate 的 completion。
就騷包度(加實用度)而言
這就已經可以打死一堆IDE了XDDDD
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.136.190.64
推
01/26 00:51, , 1F
01/26 00:51, 1F
→
01/26 08:22, , 2F
01/26 08:22, 2F
推
01/26 13:35, , 3F
01/26 13:35, 3F
推
01/26 13:44, , 4F
01/26 13:44, 4F
→
01/26 14:06, , 5F
01/26 14:06, 5F
推
01/26 19:07, , 6F
01/26 19:07, 6F
推
01/26 20:48, , 7F
01/26 20:48, 7F
→
01/26 20:49, , 8F
01/26 20:49, 8F
推
01/29 04:49, , 9F
01/29 04:49, 9F
→
01/29 17:48, , 10F
01/29 17:48, 10F
→
01/29 17:48, , 11F
01/29 17:48, 11F
→
01/29 17:50, , 12F
01/29 17:50, 12F
→
01/29 19:58, , 13F
01/29 19:58, 13F
Editor 近期熱門文章
PTT數位生活區 即時熱門文章