darlingm / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

match Error in tabs #356

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. $ cat .vimrc #minimal vimrc
hi Error ctermfg=Red guifg=Red
syntax on
match ERROR /\s\+$/

2. $ vim -p foo bar
3. :tabn #go in tab 'bar'
4. Type anything with trailing whitespaces.

What is the expected output? What do you see instead?
Trailing whitespaces should be shown in red as it does for tab 'foo'.

What version of the product are you using? On what operating system?
Tried on different versions and platforms:
- Vim 7.3, Ubuntu 12.04
- Vim 7.3, Mac 10.9.5
- Vim 7.4 (snapshot 73 https://github.com/b4winckler/macvim/releases), Mac 
10.9.5

Original issue reported on code.google.com by david2...@gmail.com on 24 Apr 2015 at 2:10

GoogleCodeExporter commented 9 years ago
That is not a bug. Matching is window-local, so you would need to put your 
match command additionally into e.g. a WinEnter autocommand.

Original comment by chrisbr...@googlemail.com on 24 Apr 2015 at 7:54