Benji Fisher wrote: > I checked the behavior of visualmode() while answering a question > on the vim users' list, and I noticed that the return value depends on > the current buffer. Is this the way it is intended to work? If so, I > think the docs should mention this. > > Example: Open two buffers in two windows. Use linewise Visual > mode in one and characterwise Visual mode in the other. Try > > :echo visualmode() > :wincmd w > :echo visualmode() > > and one will echo "v", the other "V".
The Visual area is local to a buffer. I'll add a remark. -- Communication is one of the most compli..., eh, well, it's hard. You know what I mean. Not? /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///