{"action":"created","issue":{"url":"https://api.github.com/repos/lervag/vimtex/issues/323","labels_url":"https://api.github.com/repos/lervag/vimtex/issues/323/labels{/name}","comments_url":"https://api.github.com/repos/lervag/vimtex/issues/323/comments","events_url":"https://api.github.com/repos/lervag/vimtex/issues/323/events","html_url":"https://github.com/lervag/vimtex/issues/323","id":126242830,"number":323,"title":"label completion with underscores","user":{"login":"nilsbecker","id":177614,"avatar_url":"https://avatars.githubusercontent.com/u/177614?v=3","gravatar_id":"","url":"https://api.github.com/users/nilsbecker","html_url":"https://github.com/nilsbecker","followers_url":"https://api.github.com/users/nilsbecker/followers","following_url":"https://api.github.com/users/nilsbecker/following{/other_user}","gists_url":"https://api.github.com/users/nilsbecker/gists{/gist_id}","starred_url":"https://api.github.com/users/nilsbecker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilsbecker/subscriptions","organizations_url":"https://api.github.com/users/nilsbecker/orgs","repos_url":"https://api.github.com/users/nilsbecker/repos","events_url":"https://api.github.com/users/nilsbecker/events{/privacy}","received_events_url":"https://api.github.com/users/nilsbecker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-12T18:27:23Z","updated_at":"2016-01-12T20:51:23Z","closed_at":null,"body":"label names are relatively unrestricted, apparently they can have even spaces. anyway in my case i have labels of the form `fig:la_lala_la`. i noticed that the completion offers stopped before the first `_` in a label."},"comment":{"url":"https://api.github.com/repos/lervag/vimtex/issues/comments/171050665","html_url":"https://github.com/lervag/vimtex/issues/323#issuecomment-171050665","issue_url":"https://api.github.com/repos/lervag/vimtex/issues/323","id":171050665,"user":{"login":"lervag","id":998898,"avatar_url":"https://avatars.githubusercontent.com/u/998898?v=3","gravatar_id":"","url":"https://api.github.com/users/lervag","html_url":"https://github.com/lervag","followers_url":"https://api.github.com/users/lervag/followers","following_url":"https://api.github.com/users/lervag/following{/other_user}","gists_url":"https://api.github.com/users/lervag/gists{/gist_id}","starred_url":"https://api.github.com/users/lervag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lervag/subscriptions","organizations_url":"https://api.github.com/users/lervag/orgs","repos_url":"https://api.github.com/users/lervag/repos","events_url":"https://api.github.com/users/lervag/events{/privacy}","received_events_url":"https://api.github.com/users/lervag/received_events","type":"User","site_admin":false},"created_at":"2016-01-12T20:51:23Z","updated_at":"2016-01-12T20:51:23Z","body":"This is not really a vimtex issue. I think @Rmano is right that this is about the `iskeyword` setting, which unfortunately is global. To set it for the `tex` filetype, you need to use `g:tex_isk`, since the internal vim plugin for LaTeX overwrites whatever you put in your `vimrc` file.\r\n\r\nAs @Rmano, I also tend to use dashes instead of underscores, partly for the same reason, but also because I find it syntactically prettier (this might be due to some experience with Lisp, I don't know...)."}}