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

Is this plug-in dependent upon textobj-user? #7

Open
capn-freako opened this issue Dec 15, 2017 · 5 comments
Open

Is this plug-in dependent upon textobj-user? #7

capn-freako opened this issue Dec 15, 2017 · 5 comments

Comments

@capn-freako
Copy link

Is this plug-in dependent upon the textobj-user plug-in?
I'm getting this error, when I launch Vim from a tmux pane:
(Curiously, I don't see it, when I launch the GUI MacVim directly. Is MacVim just being silent about it?)

Error detected while processing /Users/dbanas/.config/haskell-vim-now/.vim/bundle/ghci.vim/plugin/ghci│
.vim: │
line 19: │
E117: Unknown function: textobj#user#plugin

and I found this:

related issue?

@isovector
Copy link
Owner

This plugin is dependent on textobj-user, but that functionality doesn't work very well -- that's what happens when you try to write an ad-hoc haskell parser in vimscript :)

@capn-freako
Copy link
Author

Okay, thanks.

Any idea how I deal with this error, from textobj-user (I think)?:

Error detected while processing function textobj#user#plugin..265:
line   15: 
E605: Exception not caught: Unknown command: 'select-i-function' 
Error detected while processing function textobj#user#plugin:
line   15:
E171: Missing :endif                                                                                  │

@isovector
Copy link
Owner

Weird. When does this error pop up?

FWIW, a minimal working config is this (I think:)

call plug#begin('~/.vim/plugged')
Plug 'isovector/ghci.vim'
Plug 'kana/vim-textobj-user'
call plug#end()

Run

:PlugInstall

Then fire up tmux, and in it run stack repl. Then press zL from vim and it should load the current buffer in the repl.

@capn-freako
Copy link
Author

Thanks. Yes, zL worked, despite getting this error, when starting Vim:

Davids-Air-2:concat-learn dbanas$ vi src/ConCat/Learn/CNN.hs
Error detected while processing function textobj#user#plugin..265:
line   15:
E605: Exception not caught: Unknown command: 'select-i-function'
Error detected while processing function textobj#user#plugin:
line   15:                                                                     
E171: Missing :endif                                                          

@isovector
Copy link
Owner

fwiw I'm not seeing that error on version e231b65797b5765b3ee862d71077e9bd56f3ca3e of vim-textobj-user

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