Tony Mechelynck skribis: > On 14/02/09 09:44, Dominique Pelle wrote: >> Matt Wozniski wrote: >> >>>> Cutting undo sequences seems more useful when >>>> typing text than when pasting text with the mouse. >>> Naturally - but, as I'm sure you know, with :set mouse=a (or, at >>> least, :set mouse=i or some such) pasting with the mouse automatically >>> behaves like :set paste is in effect, which is a much nicer option >>> where it's available. >>> >>> ~Matt >> >> I also had "set mouse=a" in my ~/.vimrc and ended commenting it. >> I found it too annoying that when clicking in a terminal to give focus to >> that window, it had the unwanted side effect of moving the cursor inside >> Vim in that terminal (to the location where I clicked). >> >> But I should give the mouse another try: "set mouse=vic" seems better >> to my liking, than "set mouse=a". >> >> -- Dominique > > To give a window focus by one mouse-click without moving its cursor: > - either click its titlebar (if visible) > - or click its taskbar icon (which is normally always visible).
Yes of course, I know all that. I also sometimes use key accelerators to give focus to another window. But... clicking inside the window is often so much more convenient, isn't it? The title bar might be small, hidden by other windows sometimes, or some window managers don't even have them. The task bar (when it exists) is at a different location so it requires to search for its icon (which takes more than 1/10sec and which is too much). And what if I have 10 xterm opened simultaneously? Then searching for it in the taskbar is annoying. Clicking inside the window is then much more convenient. But in the end, it's a matter of taste. Anyway, as I wrote "set mouse=vic" sounds like a good setting in that case since whenever I use Vim, I never leave the window in insert mode. I do something in insert mode, then as a Pavlov reflex, I immediately do <Esc> afterwards. This reflex is so strong that I even press <Esc> in other applications than Vim when typing text (which can sometimes do unwanted thing). So when I give focus to a window with Vim, it is is in command mode and clicking it in only gives focus to the window without messing around with the cursor position. I overlooked "set mouse=vic" before. Glad that this thread made me look at it. It's a very nice way to use the mouse in Vim. -- Dominique --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
