On 2011-09-13, Christian Nachbar wrote:
> Hello,
>
> I'm not able to set "iskeyword+=:", neither with .vimrc nor with
> ftplugin/tex.vim. The only way to get it work, is to set it
> manually ":set iskeyword+=:".
> When I set it with .vimrc, it's working for all buffers except the
> tex-files. Maybe there is some simple explanation.
You can verify this by opening a LaTeX file and executing
:verbose set isk?
but this appears to be set in $VIMRUNTIME/syntax/tex.vim.
I'm not sure of the best way to fix this because I don't know
exactly what the effect on your syntax highlighting will be, but you
can force your 'iskeyword' setting to work by putting
setlocal iskeyword+=:
in ~/.vim/after/syntax/tex.vim.
HTH,
Gary
|