Skip to content

Commit

Permalink
only set 'omnifunc' if Vim has been compiled with the Ruby interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dkearns committed Jul 11, 2006
1 parent 2b0da7e commit 1e1d0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
2006-07-11 Doug Kearns <djkea2@gus.gscit.monash.edu.au>

* ftplugin/ruby.vim: only set 'omnifunc' if Vim has been compiled with
the Ruby interface

2006-07-10 Doug Kearns <djkea2@gus.gscit.monash.edu.au>

* syntax/ruby.vim: fold all multiline strings
Expand Down
4 changes: 2 additions & 2 deletions ftplugin/ruby.vim
@@ -1,7 +1,7 @@
" Vim filetype plugin
" Language: Ruby
" Maintainer: Gavin Sinclair <gsinclair at gmail.com>
" Info: $Id: ruby.vim,v 1.24 2006/05/26 17:38:59 dkearns Exp $
" Info: $Id: ruby.vim,v 1.25 2006/07/11 08:57:32 dkearns Exp $
" URL: http://vim-ruby.rubyforge.org
" Anon CVS: See above site
" Release Coordinator: Doug Kearns <dougkearns@gmail.com>
Expand Down Expand Up @@ -54,7 +54,7 @@ setlocal include=^\\s*\\<\\(load\\\|\w*require\\)\\>
setlocal includeexpr=substitute(substitute(v:fname,'::','/','g'),'$','.rb','')
setlocal suffixesadd=.rb

if exists('&ofu')
if exists("&ofu") && has("ruby")
setlocal omnifunc=rubycomplete#Complete
endif

Expand Down

0 comments on commit 1e1d0e5

Please sign in to comment.