Hi, is it possibile to use neocomplcache with ctags files? Currently it only 
shows me completions from currently open buffers, but ignores the tag file. If 
I use NeoComplCacheCachingTags it adds ctags tags to its cache, but it seems to 
work only for php files. When I invoke this command on a coffeescript file some 
tags are still missing (but they *are* in the tags file...). I've read the 
documentation, searched on the web, etc but I can't find anything related to 
ctags, so it looks like it should work out of the box...

I can see tags completions with ctrl-n, so both ctags and vim are set correctly 
imho, but of course I'd like to have all completions in one place.

I'm using vim 7.4.131, vim's tags variable is set correctly and here's my 
neocomplcache (+ neosnippet) configuration. thanks in advance!



let g:acp_enableAtStartup = 0
let g:neocomplcache_enable_prefetch = 1
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_smart_case = 1
let g:neocomplcache_disable_auto_complete = 1
let g:neocomplcache_force_overwrite_completefunc = 1
let g:neocomplcache_temporary_dir = '~/.cache/neocomplcache'

function! CleverCr()
    if pumvisible()
        if neosnippet#expandable()
            let exp = "\<Plug>(neosnippet_expand)"
            return exp . neocomplcache#close_popup()
        else
            return neocomplcache#close_popup()
        endif
    else
        return "\<CR>"
    endif
endfunction

function! CleverTab()
    if pumvisible()
        return "\<C-n>"
    endif
    let substr = strpart(getline('.'), 0, col('.') - 1)
    let substr = matchstr(substr, '[^ \t]*$')
    if strlen(substr) == 0
        " nothing to match on empty string
        return "\<Tab>"
    else
        " existing text matching
        if neosnippet#expandable_or_jumpable()
            return "\<Plug>(neosnippet_expand_or_jump)"
        else
            return neocomplcache#start_manual_complete()
        endif
    endif
endfunction

" <CR> close popup and save indent or expand snippet
imap <expr> <CR> CleverCr()

" <Tab> completion and expansion
imap <expr> <Tab> CleverTab()

smap <expr> <Tab> neosnippet#expandable_or_jumpable() ?
            \ "\<Plug>(neosnippet_expand_or_jump)" :
            \ "\<Tab>"

imap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to