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

"Undefined variable" and "Invalid arguments" errors #99

Open
anmull opened this issue Jan 25, 2022 · 2 comments
Open

"Undefined variable" and "Invalid arguments" errors #99

anmull opened this issue Jan 25, 2022 · 2 comments

Comments

@anmull
Copy link

anmull commented Jan 25, 2022

I saw one previous bug that was related, #4, which was fixed.

I don't normally use vim/nvim so I hadn't noticed this before, but if I run nvim file.txt or nvim file.md I get the following errors. If I just create a new empty buffer there are no errors.

It's possible this is user error, and if it is please close, but if you have any guidance it would be appreciated.

NVIM: v0.6.0
Commit: HEAD @ 942e02e

Config

let g:pencil#wrapModeDefault = 'soft'   " default is 'hard'

augroup pencil
  autocmd!
  autocmd FileType markdown,mkd call pencil#init()
  autocmd FileType text         call pencil#init()
augroup END

Error:

Error detected while processing function pencil#init:
line   43:
E121: Undefined variable: g:pencil#autoformat
E116: Invalid arguments for function get
E116: Invalid arguments for function pencil#setAutoFormat
@alerque
Copy link
Member

alerque commented Jan 25, 2022

Which method did you use to install the plugin?

@anmull
Copy link
Author

anmull commented Jan 29, 2022

Vundle

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