diff options
author | Jesse Luehrs <doy@tozt.net> | 2012-01-02 14:31:49 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2012-01-02 14:33:48 -0600 |
commit | 9cba0f71eef95dc38fb20a0a01a96925c0b74d00 (patch) | |
tree | ee50a468bca798c433f970819de2a474f56b8b67 /vim/after/ftplugin | |
parent | 13e4b0dc4d018ea4586086a93b2906bd0aa5cf55 (diff) | |
download | conf-9cba0f71eef95dc38fb20a0a01a96925c0b74d00.tar.gz conf-9cba0f71eef95dc38fb20a0a01a96925c0b74d00.zip |
stop using perl omnicompletion, it's annoyingly slow
Diffstat (limited to 'vim/after/ftplugin')
-rw-r--r-- | vim/after/ftplugin/perl.vim | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/vim/after/ftplugin/perl.vim b/vim/after/ftplugin/perl.vim index 7f13313..8d9585d 100644 --- a/vim/after/ftplugin/perl.vim +++ b/vim/after/ftplugin/perl.vim @@ -1,24 +1,2 @@ " the perl ftplugin hard-sets path, so this has to go in after/ setlocal path+=lib - -function! s:SID() - return matchstr(expand('<sfile>'), '<SNR>\d\+_\zeSID$') -endfun -fun! s:StringFilter(list,string) - let string = substitute(a:string,"'","''",'g') - return filter(copy(a:list),"stridx(v:val,'".string."') == 0 && v:val != '".string."'" ) -endf -function! s:CompMooseTC(base, context) - let words = ['subtype', 'class_type', 'role_type', 'maybe_type', - \'duck_type', 'enum', 'union', 'as', 'where', 'message', - \'inline_as', 'optimize_as', 'type', 'match_on_type', - \'coerce', 'from', 'via', 'find_type_constraint', - \'register_type_constraint'] - return s:StringFilter(words, a:base) -endfunction -call AddPerlOmniRule({ - \'contains': 'use Moose::Util::TypeConstraints', - \'context': '.*', - \'backward': '\<\w*$', - \'comp': function(s:SID() . 'CompMooseTC') -\}) |