summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2012-01-02 14:31:49 -0600
committerJesse Luehrs <doy@tozt.net>2012-01-02 14:33:48 -0600
commit9cba0f71eef95dc38fb20a0a01a96925c0b74d00 (patch)
treeee50a468bca798c433f970819de2a474f56b8b67
parent13e4b0dc4d018ea4586086a93b2906bd0aa5cf55 (diff)
downloadconf-9cba0f71eef95dc38fb20a0a01a96925c0b74d00.tar.gz
conf-9cba0f71eef95dc38fb20a0a01a96925c0b74d00.zip
stop using perl omnicompletion, it's annoyingly slow
-rw-r--r--.gitmodules3
-rw-r--r--vim/after/ftplugin/perl.vim22
m---------vim/bundle/perlomni0
-rw-r--r--vim/ftplugin/perl.vim2
4 files changed, 0 insertions, 27 deletions
diff --git a/.gitmodules b/.gitmodules
index 68a0625..70cbe06 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -37,6 +37,3 @@
[submodule "vim/bundle/gundo"]
path = vim/bundle/gundo
url = git://github.com/sjl/gundo.vim.git
-[submodule "vim/bundle/perlomni"]
- path = vim/bundle/perlomni
- url = https://github.com/c9s/perlomni.vim.git
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')
-\})
diff --git a/vim/bundle/perlomni b/vim/bundle/perlomni
deleted file mode 160000
-Subproject d64e43d6692f75b9618e8111acb962ad666db3d
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 2f1a6e2..b86d4e2 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -45,5 +45,3 @@ function! s:unpostfix()
endfunction
map <buffer> <silent> <Leader>i :call <SID>unpostfix()<CR>
-
-let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>"