rodjek / vim-puppet

Puppet niceties for your Vim setup
Apache License 2.0
500 stars 137 forks source link

Problem with gutentags.vim #110

Closed consal closed 4 years ago

consal commented 5 years ago

I installed the plugin with pathogen. I'm getting the following problem when I try to open vim:

Error detected while processing /root/.vim/bundle/vim-puppet/after/plugin/gutentags.vim:
line    1:
E15: Invalid expression: !exists('g:gutentags_enabled' && g:gutentags_dont_load != 0 )^M
line    9:
E488: Trailing characters
line   11:
E171: Missing :endif
Press ENTER or type command to continue

Could you help?

rodjek commented 4 years ago

The ^M at the end of the invalid expression looks like your git installation is not normalising the line endings during checkout. Try setting core.autocrlf in git (git config --global core.autocrlf true) and then reinstalling the plugin.

consal commented 4 years ago

Indeed you were right about the git configuration, thanks! :)