We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When changing current working directory automatically with the command in vimrc: au BufEnter * if &ft != 'help' | ProjectRootCD | endif
Get the error: Error detected while processing BufEnter Auto commands for "*": E172: Only one file name allowed: ProjectRootCD | endif
The text was updated successfully, but these errors were encountered:
Confirmed. From reading the documentation, it's not possible to use | inside autocommands.
The easiest solution would be to change it to:
autocmd BufEnter * ProjectRootCD
I think I'll change the documentation to that, and perhaps move the 'help' logic into ProjectRootCD itself.
Sorry, something went wrong.
Okay, never mind my last comment. The way this can be done is:
au BufEnter * if &ft != 'help' | call ProjectRootCD() | endif
Which is wrong in the builtin documentation. I'll update it. Thanks for reporting!
9386e34
No branches or pull requests
When changing current working directory automatically with the command in vimrc:
au BufEnter * if &ft != 'help' | ProjectRootCD | endif
Get the error:
Error detected while processing BufEnter Auto commands for "*":
E172: Only one file name allowed: ProjectRootCD | endif
The text was updated successfully, but these errors were encountered: