Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't Activate Plugin #29

Open
jamiejackson opened this issue May 11, 2020 · 2 comments
Open

Can't Activate Plugin #29

jamiejackson opened this issue May 11, 2020 · 2 comments

Comments

@jamiejackson
Copy link

I've never used a vim plugin. What am I doing wrong here?

[jamie.jackson@devstack bundle]$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
>     https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 78763  100 78763    0     0   540k      0 --:--:-- --:--:-- --:--:--  541k
[jamie.jackson@devstack bundle]$ echo "Plug 'will133/vim-dirdiff'" >> ~/.vimrc
[jamie.jackson@devstack bundle]$ vim -c "DirDiff secrets/stacks/test2 secrets/stacks/test1"
Error detected while processing /home/jamie.jackson/.vimrc:
line    1:
E492: Not an editor command: Plug 'will133/vim-dirdiff'
Press ENTER or type command to continue
[jamie.jackson@devstack bundle]$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Aug  9 2019 03:17:15)
@jamiejackson
Copy link
Author

[jamie.jackson@devstack bundle]$ mkdir -p ~/.vim/autoload ~/.vim/bundle && \
> curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
[jamie.jackson@devstack bundle]$ echo "execute pathogen#infect()
> syntax on
> filetype plugin indent on" >> ~/.vimrc
[jamie.jackson@devstack bundle]$ cd ~/.vim/bundle
[jamie.jackson@devstack bundle]$ git clone git://github.com/will133/vim-dirdiff
Cloning into 'vim-dirdiff'...
remote: Enumerating objects: 25, done.
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 158 (delta 7), reused 21 (delta 7), pack-reused 133
Receiving objects: 100% (158/158), 111.76 KiB | 0 bytes/s, done.
Resolving deltas: 100% (50/50), done.
[jamie.jackson@devstack bundle]$ vim -c "DirDiff  /home/docker/secrets/stacks/test2 /home/docker/secrets/stacks/test1"

Once in, I get this at the bottom of the output:

line    4:
E117: Unknown function: bufwinid
E15: Invalid expression: bufwinid(a:fname)
line    5:
E121: Undefined variable: winid
E15: Invalid expression: winid > 0
Error detected while processing function <SNR>12_DirDiff..<SNR>12_DirDiffNext..<SNR>12_DirDiffOpen:
line   96:
E121: Undefined variable: b:currentDiff
E15: Invalid expression: (b:currentDiff)

Striking out here.

@will133
Copy link
Owner

will133 commented May 14, 2020

Never mind what I said. I think it may be that your vim is somewhat old. Can you upgrade your vim?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants