Loading ...
Sorry, an error occurred while loading the content.
 

ruby support for vim & gvim 7.3

Expand Messages
  • beaucoder
    Hi Vimmers, Using Ubuntu Lucid 10.04 with vim & gvim 7.3 (Mercurial source from vim.org and then compiled on Ubuntu 10.04.) The challenge: 1. How to compile
    Message 1 of 2 , Oct 3, 2011
      Hi Vimmers,

      Using Ubuntu Lucid 10.04 with vim & gvim 7.3 (Mercurial source from
      vim.org and then compiled on Ubuntu 10.04.)

      The challenge:
      1. How to compile vim & gvim 7.3 WITH ruby support? Is there a
      compiler setting? Switch? Dependencies?
      2. Which vim scripts to use? I have rails.vim in ~/.vim/plugin,
      rails.vim & rubycomplete.vim in ~/.vim/autoload.
      4. Getting the ruby & rails vim-scripts for syntax, highlighting
      and autocomplete to work with vim & gvim 7.3.

      My ruby is currently 1.8.7 (would like to use 1.9.2 instead) Rails is
      3.0.1

      gvim --version shows:

      VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 12 2011 15:51:15)
      Included patches: 1-280
      Compiled by root@beaucoder-ssd01
      Huge version with GTK2 GUI. Features included (+) or not (-):
      +arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset
      +cindent
      +clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
      +comments
      +conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui
      +diff
      +digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search
      +farsi
      +file_in_path +find_in_path +float +folding -footer +fork() +gettext
      -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
      +libcall
      +linebreak +lispindent +listcmds +localmap -lua +menu +mksession
      +modify_fname
      +mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm
      +mouse_netterm
      -mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme
      +netbeans_intg
      +path_extra -perl +persistent_undo +postscript +printer +profile -
      python
      -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs
      +smartindent
      -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
      +tag_old_static -tag_any_white -tcl +terminfo +termresponse
      +textobjects +title
      +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
      +viminfo
      +vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset
      +xim
      +xsmp_interact +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: "/usr/local/share/vim"
      Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -
      pthread -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
      -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -
      I/usr/include/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/
      glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/
      usr/include/directfb -I/usr/include/libpng12 -g -O2 -
      D_FORTIFY_SOURCE=1
      Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -pthread -
      lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -
      lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -
      lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -
      lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -
      lncurses -lnsl -lselinux

      Alas, no ruby support.

      How to get vim/gvim 7.3, Ubuntu 10.04, ruby (1.9 preferred) and the
      vim scripts to all work together.

      Thanks,

      beaucoder in Sugar Creek, Missouri
      where life is sweet....mostly.

      --
      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
    • Reid Thompson
      ... if you re compiling it yourself, you just need to tell configure to include ruby in the build ./configure --help ..snip --enable-rubyinterp=OPTS
      Message 2 of 2 , Oct 3, 2011
        On 10/3/2011 10:35 PM, beaucoder wrote:
        Hi Vimmers,
        
        Using Ubuntu Lucid 10.04 with vim & gvim 7.3 (Mercurial source from
        vim.org and then compiled on Ubuntu 10.04.)
        
        The challenge:
            1. How to compile vim & gvim 7.3 WITH ruby support? Is there a
        compiler setting? Switch? Dependencies?
            2. Which vim scripts to use? I have rails.vim in ~/.vim/plugin,
        rails.vim & rubycomplete.vim in ~/.vim/autoload.
            4. Getting the ruby & rails vim-scripts for syntax, highlighting
        and autocomplete to work with vim & gvim 7.3.
        
        
        
        if you're compiling it yourself, you just need to tell configure to include ruby in the build

        ./configure --help

        ..snip
          --enable-rubyinterp=OPTS     Include Ruby interpreter.  default=no OPTS=no/yes/dynamic
        ...snip...

        you'll need the ruby dev packages for ubuntu also

        --
        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
      Your message has been successfully submitted and would be delivered to recipients shortly.