Tuesday, March 27, 2018

if &diff only true in first file ?

Hi,

In my .vimrc I have

if &diff
let b:mckgitstatus = "diff"
else
autocmd BufReadPost,BufNewFile,FileReadPost * call MyGitStatus()
autocmd BufUnload * call MyGitLeave()
endif

And in the first file window I do see "diff" status as expected.
But the second file window does not have the "diff" status, but my git stuff.

Any idea why if &diff does not work for the second file window ?

thx always for vim and your support,
-mark

--
--
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/d/optout.

No comments: