Tuesday, June 18, 2013

Re: Where to put "set iskeyword+=_" or remove "iskeyword-=_

On 13:06 Tue 18 Jun , Paul wrote:
> When I edit LaTeX files, I want underscore to be recognized as a keyword character. Somewhere, underscore is being removed from iskeyword. I can't find where this is happening using the bash command:
>
> grep iskeyword VIMROOT/vim/vim73/syntax/*
>
> Does anyone know where this is being done?
>
> Failing that, where can I put "set keyword+=_" so that it runs for all buffers into latex files?
>
> --
> --
> 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/groups/opt_out.
>

For latex files you should use the variable g:tex_isk. Please inspect
the syntax/tex.vim file (:echo globpath(&rtp, 'syntax/tex.vim')). It is
also documented ":help g:tex_isk".

Best regards,
Marcin

--
--
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/groups/opt_out.

No comments: