Friday, May 14, 2010

Re: Sensitivity to the first click on a gvim window (Windows)

For those who use "lastpos" plugin and want to activate the above
feature, here is Andy's solution:
Add the following to your _vimrc (not tested on linux):

autocmd FocusGained * call s:EatMouseClick()

func! s:EatMouseClick()
if getchar(1)
let chr = getchar(0)
if chr != "\<LeftMouse>"
call feedkeys(chr, "t")
endif
endif
endfunc

Best regards.
Jean Johner

--
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

No comments: