You are not logged in.

#1 2017-09-29 13:25:49

RLloque
Member
Registered: 2017-02-03
Posts: 40

Vim with ruby-support

Hi all,

for some reason as of today my vim doesn't support Ruby anymore.
(I used to use LustyJuggler which only works with Ruby)
I reinstalled vim to no avail.
My output for

vim --version | grep ruby

contains

+ruby/dyn

but when I call

:echo has('ruby')

I get the output 0.
Any help will be greatly appreciated.

Offline

#2 2017-09-29 17:28:26

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Vim with ruby-support

What's the output of

pacman -Qs vim

Offline

#3 2017-09-29 17:41:48

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: Vim with ruby-support

FWIW, I get all the same output as the OP, ruby is listed in the flags listed from the --version output, but has('ruby') returns 0.  I have vim 8.0.1159-1.

I don't use ruby so beyond that I have no way to test.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2017-09-29 18:45:49

RLloque
Member
Registered: 2017-02-03
Posts: 40

Re: Vim with ruby-support

The output of

pacman -Qs vim 

is

local/gvim 8.0.1092-1
    Vi Improved, a highly configurable, improved version of the vi text editor (with advanced features, such as a GUI)
local/vim-runtime 8.0.1092-1
    Runtime for vim and gvim

Offline

#5 2017-09-29 18:55:57

progandy
Member
Registered: 2012-05-17
Posts: 5,322

Re: Vim with ruby-support

Edit: That seems like an old vim version, it worked well with 8.0.1127-1 before my update just now.

I had yet to do my update for today. Be grateful worm, I did a partial upgrade, and has(ruby) works with gvim-8.0.1159-1 (with vim-runtime-8.0.1159-1), let's see what happens after the full update runs through smile
Edit: Still works after a full update.

Edit: Just a quick question, does your ruby installation work in a terminal without vim? Is ruby installed at all?

Last edited by progandy (2017-09-30 07:44:08)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#6 2017-09-29 19:51:42

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: Vim with ruby-support

Good catch prograndy.  I do not have ruby installed, and has('ruby') returns 0, but when I installed it (temporarily) the same returned '1'


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#7 2017-09-29 21:13:41

RLloque
Member
Registered: 2017-02-03
Posts: 40

Re: Vim with ruby-support

Yes, ruby is installed and works just fine.

Offline

#8 2017-09-29 21:17:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,545
Website

Re: Vim with ruby-support

RLloque, have you updated yet?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2017-09-30 10:26:09

RLloque
Member
Registered: 2017-02-03
Posts: 40

Re: Vim with ruby-support

Trilby, I got the version 8.0.1159-1 which is the latest according to https://www.archlinux.org/packages/extra/x86_64/vim/

Offline

#10 2017-10-04 19:30:55

RLloque
Member
Registered: 2017-02-03
Posts: 40

Re: Vim with ruby-support

For some reason ruby-support is now activated again.
But I don't know why or how.

Offline

Board footer

Powered by FluxBB