There is probably an easy solution for this, but here it goes :
whenever I do a git commit
, an error appears (copied hereunder). Vim then starts, some of my .vimrc
features are enabled, some are not.
Since I don't need all of my .vimrc options to just write a commit, I thought that a possible solution for that would be to create a .vimrc
file specifically for git commits, but I don't know how that should be done?
Error :
Error detected while processing /home/homehome/.vimrc:
line 106:
E518: Unknown option: foldenable
foldenable
is local to a window thus you shouldn't put it in your vimrc at all since the setting will not be applied on all of the windows. I also think that if your problem is that you have an error in your vimrc you should correct the error rather than changing your vimrc :).vimrc
, it seems however that the error only pops up when Vim is called fromgit commit
, and never happens otherwise... Also, where should I put thefoldenable
option then ?:version
report in regular Vim and in git commits?