You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are using the context completion feature, then you can add a new context to be evaluated. I did something like this for clojure coding, but here is a perl example that should work as you've described (put this in a perl ftplugin, Ex: ~/.vim/ftplugin/perl_supertab.vim):
if exists('g:SuperTabCompletionContexts')
let b:SuperTabCompletionContexts =
\ ['PerlContext'] + g:SuperTabCompletionContexts
function! PerlContext()
let curline = getline('.')
let cnum = col('.')
let synname = synIDattr(synID(line('.'), cnum - 1, 1), 'name')
if curline =~ '[%$&]\w*\%' . cnum . 'c' && synname !~ '\(String\|Comment\)'
return "\<c-x>\<c-o>"
endif
endfunction
endif
Let me know if this is what you were looking for or not.
I am trying to get supertab to omni complete on the following and I am having problems.
random text $wor->supertab
random %w->supertab
random &w->supertab
Where the key to have it omnicomplete is if the begining of the current word has the following char
%,$,&
Thanks
The text was updated successfully, but these errors were encountered: