You are not logged in.

#1 2014-05-23 09:40:31

ongy
Member
Registered: 2014-05-23
Posts: 5

[SOLVED] Vim plugins not working

Hello,

I have a problem with vim installation on my arch system.
Vim by itself runs without any problems, but when I try to install plugins it starts to fail.

With nerdtree installed everytime I try to open a file I get

Error detected while processing /usr/share/vim/vimfiles/nerdtree_plugin/exec_menuitem.vim:
line   18:
E15: Invalid expression:
Press ENTER or type command to continue
Error detected while processing /usr/share/vim/vimfiles/nerdtree_plugin/exec_menuitem.vim:
line   18:
E116: Invalid arguments for function NERDTreeAddMenuItem
Press ENTER or type command to continue
Error detected while processing /usr/share/vim/vimfiles/nerdtree_plugin/exec_menuitem.vim:
line   19:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
Error detected while processing /usr/share/vim/vimfiles/nerdtree_plugin/exec_menuitem.vim:
line   20:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
Error detected while processing /usr/share/vim/vimfiles/nerdtree_plugin/exec_menuitem.vim:
line   21:
E10: \ should be followed by /, ? or &
Press ENTER or type command to continue
Error detected while processing /usr/share/vim/vimfiles/nerdtree_plugin/exec_menuitem.vim:
line   22:
E10: \ should be followed by /, ? or &

package versions:
vim 7.4.274-1
vim-nerdtree 4.2.0-3

Thanks for the help
ongy

Last edited by ongy (2014-05-24 11:36:18)

Offline

#2 2014-05-23 11:34:48

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

Re: [SOLVED] Vim plugins not working

Please move/rename your vimrc (i.e. back it up) then try again with all defaults.  If this resolves the issue, then you could post your vimrc to a paste-bin-like site so we could try to find the issue.

If this *doesn't* work, my fallback suggestion would  be to clear your pacman cache and reinstall nerdtree.

Last edited by Trilby (2014-05-23 11:35:23)


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

Offline

#3 2014-05-23 12:52:19

ongy
Member
Registered: 2014-05-23
Posts: 5

Re: [SOLVED] Vim plugins not working

To using defaults: I was pretty sure I allready did that, but I did it again and as I thought: it helps nothing
(I removed my custom cpp highliting and ~/.viminfo aswell)

I cleared the packman cache this morning and tried reinstaling everything vim-related, I removed vim and all packages orphaned by that, cleared cache and reinstalled, it didn't do any good

Offline

#4 2014-05-23 15:51:55

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

Re: [SOLVED] Vim plugins not working

There must be something nonstandard about your setup. I just tried installing vim and vim-nerdtree on a fresh installation and everything worked fine.

Do you have alternative versions of vim installed? Are you running the right one?

Offline

#5 2014-05-24 08:52:47

ongy
Member
Registered: 2014-05-23
Posts: 5

Re: [SOLVED] Vim plugins not working

I am pretty sure something must be non standard, since I didn't expect it to break on standard on arch.
I have tried gvim package because it has python support (I wanted to try youcompleteme), but I have the problem with both, the vim and gvim package from the official repositories

I looked with the

:version

command for whether the normal vim package supports python and later again with gvim package, since that changed from switching packages I am pretty sure I use the version from the package.

Do you know any more files that could be the problem?

Last edited by ongy (2014-05-24 08:53:09)

Offline

#6 2014-05-24 11:27:43

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

Re: [SOLVED] Vim plugins not working

http://stackoverflow.com/questions/1837 … s-in-vimrc

http://vim.1045645.n5.nabble.com/Hi-all … 83067.html

Are you somehow running in vi-compatible mode?

Last edited by Trilby (2014-05-24 11:36:27)


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

Offline

#7 2014-05-24 11:35:51

ongy
Member
Registered: 2014-05-23
Posts: 5

Re: [SOLVED] Vim plugins not working

... thank you
I thought I searched for everything I have, sorry to bother you with this
but do you have an idea why this may be necessary for me?
When the default distribution of vim does not need to, I thought I have to put everything I want to have persistent into my vimrc file

Offline

#8 2014-05-24 11:37:32

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

Re: [SOLVED] Vim plugins not working

Do you use something other than the default distribution of vim?  I thought we already covered that.  If you've modified vim in a way to be vi-compatible, then these are the expected results.

EDIT: maybe it isn't.  I've just tested nerdtree in vi-compatible modes and it seems to still work fine.  But if you've compiled your own vim with different config flags, this could be it.

Last edited by Trilby (2014-05-24 11:43:46)


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

Offline

#9 2014-05-24 12:07:57

ongy
Member
Registered: 2014-05-23
Posts: 5

Re: [SOLVED] Vim plugins not working

Not that I know of
I have the latex-suite installed aswell (but I removed it aswell when testing), which also did some weird things, so I only used the syntax highliting and collapse mode of it
I don't know of anything that may have changed vim, but since it is fixed now I think I am to lazy to investigate further
Thank you for your help

Offline

Board footer

Powered by FluxBB