When below's text in foo.vim
---------
augroup x
g:indent_guides_enable_on_vim_startup
---------
The syntax is broken.
http://cache.gyazo.com/c7d8bdc05b41dde7621d2262d8a9ca56.png
This patch fixes syntax of global autoload variable like 'g:foo#bar#bar'.
Below is a patch. Please check.
https://gist.github.com/5867028
- Yasuhiro Matsumoto
I tried it again with simple.vimrc:
set nocp
syn on
Yukihiro Nakadaira wrote:
I just did a pull from the Merc repository; the system ftplugin/vim.vim I got from it does not have set isk+=: in it. Is this your own change? Anyway, it seems that that's your problem.
On Wed, Jun 26, 2013 at 11:31 PM, Charles Campbell <Charles.E...@nasa.gov <mailto:Charles.E.Campbell@nasa.gov>> wrote:
I tried it again with simple.vimrc:
set nocp
syn on
":filetype plugin on" is also required to reproduce.
ftplugin/vim.vim executes ":set iskeyword+=:"
I tried the patch and it seems not fix that strange highlighting.
I second the request and can add another reasons:
- It breaks python << EOF highlighting: `try:`/`else:` and so on is too common in python code.
- It breaks using `*` for searching for function argument (in function definition there are no `a:`).
- It breaks completion for functions with unique argument names (for the same reason) and completion for standard names (e.g. with consistent coding style there may be `l:repository` (`repository`) and `a:repository` at the same time).
- It breaks expectations of how searching works: if I want to find some word in comment using `\<works\>` I definitely not expect that `works:` in this sentence is not matched. I also would not expect searching for `\<works:\>` if I press `*` on `works:` in this sentence. It is hard to keep different habits for different filetypes. `-` in `isk` in zsh files is already too bad, do not make it worse by adding third filetype to a list.
Sounds like nasty stuff. Two problems:
1. There is no isk+=: in syntax/vim.vim v7.3-25
2. My copy of ftplugin/vim.vim, which I don't maintain, also does not have isk+=: in it.
I fixed patch.
Could you try this again?