Thursday, November 17, 2016

Re: How to load updated syntax files using native packages?

On Thursday, November 17, 2016 at 8:39:39 AM UTC-8, Ben Fritz wrote:

> Vim *inserts* the package directories prior to the distributed runtime files. So it *should* find your package syntax files first.

> Posting your actual 'runtimepath' may help. Also see the output of the :scriptnames command after loading your python file to see which scripts got sourced and in which order.

Well, this is what I see (vim 8.0.0081)...

One syntax plugin where I can instantly tell if it's working, is this one, because it adds highlighting to Python's "self" keyword.

https://github.com/kh3phr3n/python-syntax

If I clone it as ~/.vim/pack/me/start/python-syntax and then start vim without a .vimrc, then I get this as the output for "set rtp":

runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim80,/usr/share/vim/vim80/pack/dist/opt/matchit,/usr/share/vim/vim
files/after,~/.vim/after,~/Documents/dotfiles/.vim/pack/dugan/start/python-syntax

It's definitely being appended, not inserted. And needless to say, it doesn't get seen.

--
--
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.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment