~kiril/vimfiles

00264c8e7cc1e8bfe877f8a0a7a97fe8de04d67c — Kiril Vladimirov 1 year, 9 months ago 867fd27
rm startup/acp.vim

Not really sure if I have ever used these.
1 files changed, 0 insertions(+), 53 deletions(-)

D startup/acp.vim
D startup/acp.vim => startup/acp.vim +0 -53
@@ 1,53 0,0 @@
" Custom behaviour here in order not to disturb normal plugin behaviour
" by AndrewRadev
let g:acp_behavior = {
      \ 'php': [],
      \ 'ruby': [],
      \ 'python': []
      \ }

call add(g:acp_behavior.php, {
      \   'command'      : "\<C-x>\<C-u>",
      \   'completefunc' : 'htmlcomplete#CompleteTags',
      \   'meets'        : 'AcpMeetsForPhpHtmlTag',
      \   'repeat'       : 1,
      \ })
call add(g:acp_behavior.php, {
      \   'command' : "\<C-n>",
      \   'meets'   : 'acp#meetsForKeyword',
      \   'repeat'  : 0,
      \ })
call add(g:acp_behavior.php, {
      \   'command' : "\<C-x>\<C-f>",
      \   'meets'   : 'acp#meetsForFile',
      \   'repeat'  : 1,
      \ })

call add(g:acp_behavior.ruby, {
      \   'command' : "\<C-n>",
      \   'meets'   : 'acp#meetsForKeyword',
      \   'repeat'  : 0,
      \ })
call add(g:acp_behavior.ruby, {
      \   'command' : "\<C-x>\<C-f>",
      \   'meets'   : 'acp#meetsForFile',
      \   'repeat'  : 1,
      \ })

call add(g:acp_behavior.python, {
      \   'command' : "\<C-n>",
      \   'meets'   : 'acp#meetsForKeyword',
      \   'repeat'  : 0,
      \ })
call add(g:acp_behavior.python, {
      \   'command' : "\<C-x>\<C-f>",
      \   'meets'   : 'acp#meetsForFile',
      \   'repeat'  : 1,
      \ })

" Added the condition that the tag does not contain '?'
function! AcpMeetsForPhpHtmlTag(context)
  return g:acp_behaviorHtmlOmniLength >= 0 &&
        \ a:context =~ '\(<\|<\/\|<[^?>]\+ \|<[^>]\+=\"\)\k\{' .
        \              g:acp_behaviorHtmlOmniLength . ',}$'
endfunction