According to the Debian documentation about vim, a Debian package (Ubuntu, really, in my case) is expected to place
<name>.vim files under:
Syntax files go under a sub-directory named syntax:
However, it does not look like
vim recognized that directory.
.vimrc file I have something like so:
au BufNewFile,BufReadPost *.cpp setf my-syntax
Just in case, I also tried
:setf my-syntax manually and I lose the syntax (which I know is what happens when a file is not found). Looking around, it sounds like the only path to a system syntax folder would be the path to
I also replaced the
setf ... with
so /usr/shared/vim/addons/syntax/my-syntax.vim and that works perfectly.
Is it not possible to use that
addons directory? Do I need to add it in a variable? Is it necessary to have a corresponding plugin which properly activates the