Wednesday, March 25, 2020

Re: Customize vim for YAML

I discovered vim -V, which dumps out a running commentary about what it's doing as it comes up.  On the second page I see this:

Executing BufRead Auto commands for "*.yml"
autocommand so ~/.vim/yaml.vim
chdir(/home/ansible/.vim)
fchdir() to previous dir
line 0: sourcing "/home/ansible/.vim/yaml.vim"
finished sourcing /home/ansible/.vim/yaml.vim

(That was for a non-root user, but root is the same.)

So it's definitely sourcing the yaml.vim file.  That means the .vimrc file must have been sourced.  So why don't I see the settings from .vimrc (set ai ts=2 sw=2 et number)?  And since it sourced the yaml.vim file, why isn't it highlighting syntax??  Especially since this used to work for non-root users!?

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/4a543968-4ee2-4fde-8c5b-f3cc67582ac0%40googlegroups.com.

No comments: