我是 web developer
請問大家覺得哪個 php / javascript / css auto-completion plugin 最好呢??
請問大家覺得哪個 php / javascript / css auto-completion plugin 最好呢??
|
sparkDec 10, 2010
1
snipmate?
|
|
harryxuDec 10, 2010
2
neocomplcache 感觉不错,我一直在用
http://www.vim.org/scripts/script.php?script_id=2620 |
|
3
我想达到的效果是跟 xcode 里的差不多
- 按 tab 的时候,自动补完馀下字串 - 按 esc 的时候,显示 autocomplete list snipmate 能做到第一项,不过没有 preview 不方便 在试 neocomplcache 中,不过经常在 javascript/css 里 suggest php function……不好用啊,而且也没有按 tab 自动补完的效果。 |
|
4
推一推,autocomplete 很重要啦
|
|
aligoDec 10, 2010
5
第一需求snipmate可以实现
然后autocomplete list可以用autocomplpop实现,会自动识别当前文件的语言 |
|
6
另外,有沒有辦法做到自動 close tag 的效果?例如輸入 <a> 會自動加上 </a>
和 () {} 等等 |
|
eth2netDec 10, 2010
7
@kayue surround https://github.com/tpope/vim-surround
|
|
harryxuDec 10, 2010
9
|
|
bedDec 11, 2010
10
Options for auto-complete-(
:inoremap ( ()<ESC>i :inoremap ) <c-r>=AutoPair(')')<CR> :inoremap { {}<ESC>i :inoremap } <c-r>=AutoPair('}')<CR> :inoremap [ []<ESC>i :inoremap ] <c-r>=AutoPair(']')<CR> :inoremap < <><ESC>i :inoremap > <c-r>=AutoPair('>')<CR> function! AutoPair(char) if getline('.')[col('.') - 1] == a:char return "\<Right>" else return a:char endif endf |
|
11
|
|
12
在用 Autoclose,是我想要的东西,但是不懂怎么把 keymap 改成 </
目前需要用 <C-_> 来 trigger autoclose 在想办法将它改为 </ 比较直觉吧 |