Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Perl omnicompletion available for Vim 7

by zby (Vicar)
on Jun 21, 2007 at 15:34 UTC ( #622599=note: print w/replies, xml ) Need Help??

in reply to Perl omnicompletion available for Vim 7

Looks cool but when I try ^X^O I keep getting an "'omnifunc' option not set error" (even if I do :set omnifunc). Any idea what I've done wrong?

The installation creates files with some funny names:

/usr/share/vim/vimfiles/ftplugin/perl/omniperl.vim\ [\[\[1
This looks like this is some bug. I've tried to change the line 4 from the vba file from:
ftplugin/perl/ [[[1
But this did not improve the situation at all.

Replies are listed 'Best First'.
Re^2: Perl omnicompletion available for Vim 7
by Tomte (Priest) on Jun 29, 2007 at 13:34 UTC

    It should. I simply renamed the extracted files and voila omnicompletion (in some deranged sense of omni) was available. It's almost unusable for me in it's current state - we'll see if I find the time to take a look on how to improve the situation...*sigh*


    An intellectual is someone whose mind watches itself.
    -- Albert Camus

      Thanks - after renaming all of the extracted files it worked.

        I found out the error: The vimball.vim version ist too old, after an update from version 16 to the current version 22 extraction (:so %) happens without error.


        An intellectual is someone whose mind watches itself.
        -- Albert Camus

Re^2: Perl omnicompletion available for Vim 7
by john_oshea (Priest) on Jun 21, 2007 at 16:08 UTC

    If I had to guess, I'd say that you may not have the feature compiled into Vim. Though, obviously, if omnicompletion works for other languages, I'm talking nonsense ;-)

    Here's the output from ':version' on the machine I'm in front of now if you want to compare with yours. Mine's had both Perl and Vim compiled from source and I'm pretty certain I 'turned everything up to 11' with Vim.

    :version VIM - Vi IMproved 7.1 (2007 May 12, compiled May 14 2007 14:22:44) MacOS X (unix) version Compiled by johno@johns-g5.local Huge version with Carbon GUI. Features included (+) or not (-): +arabic +autocmd -balloon_eval +browse ++builtin_terms +byte_offset +c +indent -clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments +cryptv -cscope +cursorshape +dialog_con_gui + +diff +digraphs -dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer +fork() -gettext +-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall +linebreak +lispindent +listcmds +localmap +menu +mksession + +modify_fname +mouse -mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm +mouse_xterm +multi_byte +multi_lang -mzscheme -netbean +s_intg -osfiletype +path_extra +perl +postscript +printer +profile +python +quickfix +reltime +rightleft +ruby +scrollbind +signs +smarti +ndent -sniff +statusline -sun_workshop +syntax +tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjec +ts +title -toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writeb +ackup -X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save system vimrc file: "$VIM/vimrc" user vimrc file: "$HOME/.vimrc" user exrc file: "$HOME/.exrc" system gvimrc file: "$VIM/gvimrc" user gvimrc file: "$HOME/.gvimrc" system menu file: "$VIMRUNTIME/menu.vim" fall-back for $VIM: "/Applications/" Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MAC -fno-co +mmon -fpascal-strings -Wall -Wno-unknown-pragmas -mdynamic-no-pic -pi +p e -I. -Iproto -DMACOS_X_UNIX -no-cpp-precomp -I/Developer/Headers/Flat +Carbon -g -O2 -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing + -I/usr/local/include -I/opt/local/include -I/usr/local/lib/perl5/5.8. +8/darwin-thread-multi-2level/CORE -I/System/Library/Frameworks/Pytho +n .framework/Versions/2.3/include/python2.3 -I/usr/lib/ruby/1.8/powerpc +-darwin8.0 Linking: gcc -L/usr/local/lib -o Vim -framework Carbon -lncurse +s -liconv -L/usr/local/lib -L/opt/local/lib /usr/local/lib/perl5/5 +. 8.8/darwin-thread-multi-2level/auto/DynaLoader/DynaLoader.a -L/usr/loc +al/lib/perl5/5.8.8/darwin-thread-multi-2level/CORE -lperl -lm -lc -fr +a mework Python -lruby -lobjc

    Actually, I've just had grep through my shell history, and these're the configure options I used:

    ./configure --with-features=huge --enable-perlinterp --enable-pythonin +terp --enable-rubyinterp --enable-multibyte

    Hope that helps

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://622599]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2021-12-05 19:40 GMT
Find Nodes?
    Voting Booth?
    R or B?

    Results (31 votes). Check out past polls.