RE: Remapping mouse-wheel
No, scrollbind is not set. Keep in mind that I see this problem when I start with "-u NONE -U NONE". > ftp://ftp.vim.org/pub/vim/pc/gvim71.exe That's what I am running. Similar behavior has been reported by at least one other Windows user. -Original Message- From: Reid Thompson [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 3:30 PM To: Waters, Bill Cc: Tobia; vim Subject: Re: Remapping mouse-wheel Waters, Bill wrote: >> If I understand you correctly, you want the mouse wheel >> to always scroll in all windows simultaneously? >> > > No. I want it to behave as yours does, "mouse wheel only scrolls in the > active window". > > This seems to be a problem specific to Microsoft Windows. (I am running > XP.) I should have mentioned that before. > > --Bill > > > -Original Message- > From: Tobia [mailto:[EMAIL PROTECTED] > Sent: Thursday, May 24, 2007 2:45 PM > To: vim > Subject: Re: Remapping mouse-wheel > > Waters, Bill wrote: > >> When I have a split window (horizontal or vertical), the mouse wheel >> only works in one of the two splits. It works in either (as it >> should) when I do a CTRL-mouse-wheel. >> > > I don't think I understand your problem. > > Ctrl-mouse wheel has no particular effect on my system (Vim 7.1 Gtk on > Debian) and it's not supposed to, according to the manual. > > On my Vim the mouse wheel only scrolls in the active window, both with > and without Ctrl, > > > >> I am looking for a work-around to this problem. >> > > If I understand you correctly, you want the mouse wheel to always scroll > in all windows simultaneously? Then put this in your .vimrc: > > set scrollbind > > > HTH > Tobia > gvim 7.1 (installed using the windows installer ftp://ftp.vim.org/pub/vim/pc/gvim71.exe ) scrolls in active window only on my XP Pro. ( scroll and CTRL-scroll ). You don't by chance have scrollbind set true by accident somewhere :set all will show all the current settings.
RE: Remapping mouse-wheel
> If I understand you correctly, you want the mouse wheel > to always scroll in all windows simultaneously? No. I want it to behave as yours does, "mouse wheel only scrolls in the active window". This seems to be a problem specific to Microsoft Windows. (I am running XP.) I should have mentioned that before. --Bill -Original Message- From: Tobia [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 2:45 PM To: vim Subject: Re: Remapping mouse-wheel Waters, Bill wrote: > When I have a split window (horizontal or vertical), the mouse wheel > only works in one of the two splits. It works in either (as it > should) when I do a CTRL-mouse-wheel. I don't think I understand your problem. Ctrl-mouse wheel has no particular effect on my system (Vim 7.1 Gtk on Debian) and it's not supposed to, according to the manual. On my Vim the mouse wheel only scrolls in the active window, both with and without Ctrl, > I am looking for a work-around to this problem. If I understand you correctly, you want the mouse wheel to always scroll in all windows simultaneously? Then put this in your .vimrc: set scrollbind HTH Tobia
RE: Remapping mouse-wheel
So, nobody has any comments on this? I get the same behavior when I start gvim with "-u NONE -U NONE". -Original Message----- From: Waters, Bill Sent: Thursday, May 17, 2007 1:01 PM To: vim Subject: Remapping mouse-wheel Is there a way to map mouse-wheel to CTRL-mouse-wheel? I tried this... map map nnoremap
Remapping mouse-wheel
Is there a way to map mouse-wheel to CTRL-mouse-wheel? I tried this... map map nnoremap
RE: mouse-wheel scrolling with vertically split windows
Is there a way to map mouse-wheel to CTRL-mouse-wheel? That seems to be a work-around. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 6:43 PM To: Waters, Bill; vim Subject: Re: mouse-wheel scrolling with vertically split windows Yes, with gvim 7.1 on WinXP SP2 I get the same behaviour. gvim -u NONE -U NONE some_file :vsp C-W C-W Use the wheel to scroll. Only the left window will scroll. Whoa, I was just trying this again when I discovered if you hold down the CTRL key you get different behaviour. CTRL-wheel scroll will do the right side window. Crap, now I restarted Vim and it will scroll both windows again as it should. So after it not doing it 5 restarts in a row, once I held down the CTRL button and scrolled (which worked). Now everytime I restart Vim it works flawlessly. Walter, what happens when you try the same thing? Dave - Original Message - From: "Waters, Bill" [EMAIL PROTECTED] Sent: 05/14/2007 05:56 PM EST To: David Fishburn; "vim" Subject: RE: mouse-wheel scrolling with vertically split windows > What happens if you start vim using: > Gvim -u NONE -U NONE Same results. I start gvim, do a :vsplit, and the mouse wheel will only scroll the left window, even when the right window is selected. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 5:45 PM To: Waters, Bill; vim Subject: Re: mouse-wheel scrolling with vertically split windows What happens if you start vim using: Gvim -u NONE -U NONE And try again? If it doesn't happen sounds like possibly a plugin issue (or compability mode). But from a code perspective I don't think a plugin could affect Vim in this way. Dave - Original Message - From: "Waters, Bill" [EMAIL PROTECTED] Sent: 05/14/2007 02:51 PM EST To: "David Fishburn" <[EMAIL PROTECTED]>; Subject: RE: mouse-wheel scrolling with vertically split windows It happens every time for me. I just have to open a file and then do a :vsplit. It really shows up and is annoying with using the taglist plugin. Do you know of a command for the Edit->Global Settings->Toggle Right Scroll Bar option? -Original Message- From: David Fishburn [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 2:42 PM To: Waters, Bill Subject: RE: mouse-wheel scrolling with vertically split windows > -Original Message- > From: Waters, Bill [mailto:[EMAIL PROTECTED] > Sent: Monday, May 14, 2007 3:23 PM > To: vim@vim.org > Subject: mouse-wheel scrolling with vertically split windows > > (I am using gVim 7.1 in Windows XP.) > > If I do a :vsplit, I end up with a scroll bar on the right > for the right window and a scroll bar on the left for the > left window. When I use my mouse wheel to scroll, the left > window scrolls, regardless of which window is selected. > > If I do a Edit->Global Settings->Toggle Right Scroll Bar, the > right scroll bar disappears. But I am able to mouse-wheel > scrolling based on which window is selected. > > Is there a way to keep both scroll bars, and be able to > mouse-wheel scroll based on which window is selected? Unfortunately, this has been reported since the betas of 7.0. Many of us on Windows are running into this, but I cannot reliably come up with a series of steps to reproduce the issue to hand over to Bram. Can you reliably reproduce this so that it will happen on other peoples machines? Dave
RE: mouse-wheel scrolling with vertically split windows
Bringing it up with " gvim -u NONE -U NONE", I see guioptions=egmrLtT. I set it to your options (gimrLTt) and I see the same behavior as before - the mouse wheel only scrolls the left window. > When running as a GUI, if I use my mouse wheel to scroll, > the window under the mouse pointer scrolls, regardless of > whether or not it is selected for keyboard input. IMHO > this is "proper" behavior. I agree. Even with the CTRL-mouse-wheel work-around, it scrolls the right/left window based on which window is selected/active. I agree with you, it should simply scroll the window under the pointer. -Original Message- From: A.J.Mechelynck [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 8:22 PM To: Waters, Bill Cc: vim@vim.org Subject: Re: mouse-wheel scrolling with vertically split windows Waters, Bill wrote: > (I am using gVim 7.1 in Windows XP.) > > If I do a :vsplit, I end up with a scroll bar on the right for the right > window and a scroll bar on the left for the left window. When I use my > mouse wheel to scroll, the left window scrolls, regardless of which > window is selected. > > If I do a Edit->Global Settings->Toggle Right Scroll Bar, the right > scroll bar disappears. But I am able to mouse-wheel scrolling based on > which window is selected. > > Is there a way to keep both scroll bars, and be able to mouse-wheel > scroll based on which window is selected? > > I am using Vim 7.1.1 with GTK2/Gnome GUI on openSUSE Linux 10.2 with kde desktop. When running as a GUI, if I use my mouse wheel to scroll, the window under the mouse pointer scrolls, regardless of whether or not it is selected for keyboard input. IMHO this is "proper" behaviour. In the GUI, when there are three vertically split windows, and I use the scrollbars (not the wheel) then which scrollbar moves the (selected) middle window depends on which window it was split from. In console mode there are no scrollbars: When running in konsole, then if I use the wheel, the selected window scrolls, not necessarily the one under the mouse pointer. When running in the linux console (/dev/tty), the mouse is recognised but the wheel has no effect. What is your 'guioptions' set to? Mine is gimrLTt and in the GUI I see the right-hand scrollbar always, the left-hand one if there is a vertical split. Best regards, Tony. -- "I'd love to go out with you, but I'm converting my calendar watch from Julian to Gregorian."
RE: mouse-wheel scrolling with vertically split windows
If the right window is selected and I do CTRL-wheel, the right window will scroll. That is the only way that I can get the right window to scroll with the mouse wheel though. So, I am seeing similar behavior to yours, but not the exact same thing. --Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 6:43 PM To: Waters, Bill; vim Subject: Re: mouse-wheel scrolling with vertically split windows Yes, with gvim 7.1 on WinXP SP2 I get the same behaviour. gvim -u NONE -U NONE some_file :vsp C-W C-W Use the wheel to scroll. Only the left window will scroll. Whoa, I was just trying this again when I discovered if you hold down the CTRL key you get different behaviour. CTRL-wheel scroll will do the right side window. Crap, now I restarted Vim and it will scroll both windows again as it should. So after it not doing it 5 restarts in a row, once I held down the CTRL button and scrolled (which worked). Now everytime I restart Vim it works flawlessly. Walter, what happens when you try the same thing? Dave - Original Message - From: "Waters, Bill" [EMAIL PROTECTED] Sent: 05/14/2007 05:56 PM EST To: David Fishburn; "vim" Subject: RE: mouse-wheel scrolling with vertically split windows > What happens if you start vim using: > Gvim -u NONE -U NONE Same results. I start gvim, do a :vsplit, and the mouse wheel will only scroll the left window, even when the right window is selected. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 5:45 PM To: Waters, Bill; vim Subject: Re: mouse-wheel scrolling with vertically split windows What happens if you start vim using: Gvim -u NONE -U NONE And try again? If it doesn't happen sounds like possibly a plugin issue (or compability mode). But from a code perspective I don't think a plugin could affect Vim in this way. Dave - Original Message - From: "Waters, Bill" [EMAIL PROTECTED] Sent: 05/14/2007 02:51 PM EST To: "David Fishburn" <[EMAIL PROTECTED]>; Subject: RE: mouse-wheel scrolling with vertically split windows It happens every time for me. I just have to open a file and then do a :vsplit. It really shows up and is annoying with using the taglist plugin. Do you know of a command for the Edit->Global Settings->Toggle Right Scroll Bar option? -Original Message- From: David Fishburn [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 2:42 PM To: Waters, Bill Subject: RE: mouse-wheel scrolling with vertically split windows > -Original Message- > From: Waters, Bill [mailto:[EMAIL PROTECTED] > Sent: Monday, May 14, 2007 3:23 PM > To: vim@vim.org > Subject: mouse-wheel scrolling with vertically split windows > > (I am using gVim 7.1 in Windows XP.) > > If I do a :vsplit, I end up with a scroll bar on the right > for the right window and a scroll bar on the left for the > left window. When I use my mouse wheel to scroll, the left > window scrolls, regardless of which window is selected. > > If I do a Edit->Global Settings->Toggle Right Scroll Bar, the > right scroll bar disappears. But I am able to mouse-wheel > scrolling based on which window is selected. > > Is there a way to keep both scroll bars, and be able to > mouse-wheel scroll based on which window is selected? Unfortunately, this has been reported since the betas of 7.0. Many of us on Windows are running into this, but I cannot reliably come up with a series of steps to reproduce the issue to hand over to Bram. Can you reliably reproduce this so that it will happen on other peoples machines? Dave
RE: mouse-wheel scrolling with vertically split windows
> What happens if you start vim using: > Gvim -u NONE -U NONE Same results. I start gvim, do a :vsplit, and the mouse wheel will only scroll the left window, even when the right window is selected. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 5:45 PM To: Waters, Bill; vim Subject: Re: mouse-wheel scrolling with vertically split windows What happens if you start vim using: Gvim -u NONE -U NONE And try again? If it doesn't happen sounds like possibly a plugin issue (or compability mode). But from a code perspective I don't think a plugin could affect Vim in this way. Dave - Original Message ----- From: "Waters, Bill" [EMAIL PROTECTED] Sent: 05/14/2007 02:51 PM EST To: "David Fishburn" <[EMAIL PROTECTED]>; Subject: RE: mouse-wheel scrolling with vertically split windows It happens every time for me. I just have to open a file and then do a :vsplit. It really shows up and is annoying with using the taglist plugin. Do you know of a command for the Edit->Global Settings->Toggle Right Scroll Bar option? -Original Message- From: David Fishburn [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 2:42 PM To: Waters, Bill Subject: RE: mouse-wheel scrolling with vertically split windows > -Original Message- > From: Waters, Bill [mailto:[EMAIL PROTECTED] > Sent: Monday, May 14, 2007 3:23 PM > To: vim@vim.org > Subject: mouse-wheel scrolling with vertically split windows > > (I am using gVim 7.1 in Windows XP.) > > If I do a :vsplit, I end up with a scroll bar on the right > for the right window and a scroll bar on the left for the > left window. When I use my mouse wheel to scroll, the left > window scrolls, regardless of which window is selected. > > If I do a Edit->Global Settings->Toggle Right Scroll Bar, the > right scroll bar disappears. But I am able to mouse-wheel > scrolling based on which window is selected. > > Is there a way to keep both scroll bars, and be able to > mouse-wheel scroll based on which window is selected? Unfortunately, this has been reported since the betas of 7.0. Many of us on Windows are running into this, but I cannot reliably come up with a series of steps to reproduce the issue to hand over to Bram. Can you reliably reproduce this so that it will happen on other peoples machines? Dave
RE: mouse-wheel scrolling with vertically split windows
It happens every time for me. I just have to open a file and then do a :vsplit. It really shows up and is annoying with using the taglist plugin. Do you know of a command for the Edit->Global Settings->Toggle Right Scroll Bar option? -Original Message- From: David Fishburn [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 2:42 PM To: Waters, Bill Subject: RE: mouse-wheel scrolling with vertically split windows > -Original Message- > From: Waters, Bill [mailto:[EMAIL PROTECTED] > Sent: Monday, May 14, 2007 3:23 PM > To: vim@vim.org > Subject: mouse-wheel scrolling with vertically split windows > > (I am using gVim 7.1 in Windows XP.) > > If I do a :vsplit, I end up with a scroll bar on the right > for the right window and a scroll bar on the left for the > left window. When I use my mouse wheel to scroll, the left > window scrolls, regardless of which window is selected. > > If I do a Edit->Global Settings->Toggle Right Scroll Bar, the > right scroll bar disappears. But I am able to mouse-wheel > scrolling based on which window is selected. > > Is there a way to keep both scroll bars, and be able to > mouse-wheel scroll based on which window is selected? Unfortunately, this has been reported since the betas of 7.0. Many of us on Windows are running into this, but I cannot reliably come up with a series of steps to reproduce the issue to hand over to Bram. Can you reliably reproduce this so that it will happen on other peoples machines? Dave
mouse-wheel scrolling with vertically split windows
(I am using gVim 7.1 in Windows XP.) If I do a :vsplit, I end up with a scroll bar on the right for the right window and a scroll bar on the left for the left window. When I use my mouse wheel to scroll, the left window scrolls, regardless of which window is selected. If I do a Edit->Global Settings->Toggle Right Scroll Bar, the right scroll bar disappears. But I am able to mouse-wheel scrolling based on which window is selected. Is there a way to keep both scroll bars, and be able to mouse-wheel scroll based on which window is selected?
RE: savevers plugin
Rollover would occur at the savevers_max value. In this example, savevers_max is set to 99. -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0098.clean -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0099.clean -rw-r- 1 eralston admin 148 Sep 20 11:34 test.txt..clean -Original Message- From: Suresh Govindachar [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 8:20 AM To: 'Yakov Lerner'; Waters, Bill Cc: vim@vim.org Subject: RE: savevers plugin OP wants to save 4 copies only but with "true" version numbers (rather than "relative" version numbers of 0, 1, 2, 3). --Suresh -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 02, 2007 11:39 PM To: Waters, Bill Cc: vim@vim.org Subject: Re: savevers plugin On 5/3/07, Waters, Bill <[EMAIL PROTECTED]> wrote: > I am looking at using the savevers plugin. I don't think it does > exactly what I am looking for. Why don't you set savevers_max to 9 ? Do you plan to have more than 9 versions ? (if I underdtand your request right). Otherwise, your request sounds strange. It sounds like this: "I want to set savevers_max to 3, and I want savevers to ignore this". It's like "I want vim to go to line 10 when I tell him to go to line 5". Why would you want to set savevers_max to wrong value instead of desired value (999) in the first place ? Yakov > I want the old version of my file to be > saved regardless of what savevers_max is set to. If I set savevers_max > to three and I save for the fourth time, I want the oldest, saved > version of the file to be deleted and I want my latest last-version to > be saved. > > My files would go from this... > > -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt > -rw-r- 1 eralston admin 102 Sep 20 11:12 test.txt.0001.clean > -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0002.clean > -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0003.clean > > To this... > > -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt > -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0002.clean > -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0003.clean > -rw-r- 1 eralston admin 148 Sep 20 11:34 test.txt.0004.clean > > Anyway to do this? Anybody already hacked savevers to do this? Or have > some clever mappings to handle this? > > A related question... is there a way to use a single backup directory > for all files? I think it would need to have a way to make all file > names unique. So that saving /dir1/a.txt wouldn't clobber over > /dir2/a.txt. > > Thanks, > Bill >
RE: savevers plugin
I don't want to have to remember to periodically purge the backup files. And I don't want the backups to string on forever and fill my harddrive. In actual practice, I would set savevers_max to 100 or 1000. The backup function would be running and I wouldn't ever have to think about it, other then when I need to access old data. I also want it out of site, thus the questions about having one backup directory and the need to make file names unique. -Original Message- From: Yakov Lerner [mailto:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 1:39 AM To: Waters, Bill Cc: vim@vim.org Subject: Re: savevers plugin On 5/3/07, Waters, Bill <[EMAIL PROTECTED]> wrote: > I am looking at using the savevers plugin. I don't think it does > exactly what I am looking for. Why don't you set savevers_max to 9 ? Do you plan to have more than 9 versions ? (if I underdtand your request right). Otherwise, your request sounds strange. It sounds like this: "I want to set savevers_max to 3, and I want savevers to ignore this". It's like "I want vim to go to line 10 when I tell him to go to line 5". Why would you want to set savevers_max to wrong value instead of desired value (999) in the first place ? Yakov > I want the old version of my file to be > saved regardless of what savevers_max is set to. If I set savevers_max > to three and I save for the fourth time, I want the oldest, saved > version of the file to be deleted and I want my latest last-version to > be saved. > > My files would go from this... > > -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt > -rw-r- 1 eralston admin 102 Sep 20 11:12 test.txt.0001.clean > -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0002.clean > -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0003.clean > > To this... > > -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt > -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0002.clean > -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0003.clean > -rw-r- 1 eralston admin 148 Sep 20 11:34 test.txt.0004.clean > > Anyway to do this? Anybody already hacked savevers to do this? Or have > some clever mappings to handle this? > > A related question... is there a way to use a single backup directory > for all files? I think it would need to have a way to make all file > names unique. So that saving /dir1/a.txt wouldn't clobber over > /dir2/a.txt. > > Thanks, > Bill >
savevers plugin
I am looking at using the savevers plugin. I don't think it does exactly what I am looking for. I want the old version of my file to be saved regardless of what savevers_max is set to. If I set savevers_max to three and I save for the fourth time, I want the oldest, saved version of the file to be deleted and I want my latest last-version to be saved. My files would go from this... -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt -rw-r- 1 eralston admin 102 Sep 20 11:12 test.txt.0001.clean -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0002.clean -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0003.clean To this... -rw-r- 1 eralston admin 226 Sep 20 11:43 test.txt -rw-r- 1 eralston admin 106 Sep 20 11:14 test.txt.0002.clean -rw-r- 1 eralston admin 132 Sep 20 11:22 test.txt.0003.clean -rw-r- 1 eralston admin 148 Sep 20 11:34 test.txt.0004.clean Anyway to do this? Anybody already hacked savevers to do this? Or have some clever mappings to handle this? A related question... is there a way to use a single backup directory for all files? I think it would need to have a way to make all file names unique. So that saving /dir1/a.txt wouldn't clobber over /dir2/a.txt. Thanks, Bill
RE: bracket completion
> I'll just add a statement enabling this for certain languages Can someone provide an example of how to enable this for a certain language? I assume that it is a condition around the "remap" in your vimrc?? -Original Message----- From: Waters, Bill Sent: Monday, April 02, 2007 1:42 PM To: Greg Fitzgerald; A.J.Mechelynck Cc: vim@vim.org Subject: RE: bracket completion Can you provide and example of how to do this? Thanks, Bill > > > >:inoremap { {} > >:inoremap [ [] > >:inoremap ( () > > > > I'll just add a statment enabling this for certain languages. This has > also giving me a couple new ideas to play with. Thanks again. :) > > --Greg
RE: bracket completion
Can you provide and example of how to do this? Thanks, Bill > > > >:inoremap { {} > >:inoremap [ [] > >:inoremap ( () > > > > I'll just add a statment enabling this for certain languages. This has > also giving me a couple new ideas to play with. Thanks again. :) > > --Greg
gVim and Cygwin
Does anyone have experience with running gVim and using Cygwin commands (ex. indent)? I would prefer not to run vim in a Cygwin terminal, unless someone has all of the configurations needed (syntax highlighting, etc) to have that act like gVim. Thanks, Bill
Jump to tag opens VIM in a new Microsoft Windows XP window
It looks like it might take a script to do this. I would need to check if any open gvim window contains the tag being searched for. If so, I would make that window active and jump to the tag. If not and the tag reference exists, I would open a new gvim window at the tag location. Anyone have suggestions as to how to do this? Or know of a script that does something similar to this? --Bill > On 2007-03-23, "Waters, Bill" <[EMAIL PROTECTED]> wrote: > > This gets me close to what I want... > > nnoremap <2-LeftMouse> :!start gvim -t > > The only problem is that it will start up a new gvim even if the tag is in > the file that I started from. So, you get the same file opened twice, in two > windows. > > Anybody know how to avoid that? > > --Bill > > > On 2007-03-23, "Waters, Bill" <[EMAIL PROTECTED]> wrote: > > When I jump to a tag reference in a different file, can I have VIM open that > file in a new Microsoft Window? As it works now, I jump to the new file in > the same VIM session. I have three problems with that: > > 1. VIM will not jump to the tag unless all of the changes in my current file > have been saved. > > 2. When I jump to the new file, I loose the undo buffer for the previous > file. > > 3. I would prefer to look at the new file in a separate, side-by-side > Microsoft Window. > > I see how I can jump to a new split window in the current VIM session, but > that is not preferred/ideal. > > Thanks, > > Bill
RE: Jump to tag opens VIM in a new Microsoft Windows XP window
Thanks. This gets me close to what I want... nnoremap <2-LeftMouse> :!start gvim -t The only problem is that it will start up a new gvim even if the tag is in the file that I started from. So, you get the same file opened twice, in two windows. Anybody know how to avoid that? --Bill -Original Message- From: Gary Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 5:14 PM To: vim@vim.org Subject: Re: Jump to tag opens VIM in a new Microsoft Windows XP window On 2007-03-23, "Waters, Bill" <[EMAIL PROTECTED]> wrote: > When I jump to a tag reference in a different file, can I have VIM > open that file in a new Microsoft Window? As it works now, I jump > to the new file in the same VIM session. I have three problems > with that: > > 1. VIM will not jump to the tag unless all of the changes in my > current file have been saved. You can fix this by making the current buffer hidden before executing the jump. See :help hidden :help bufhidden :help hide > 2. When I jump to the new file, I loose the undo buffer for the > previous file. Making the buffer hidden will fix that, too. > 3. I would prefer to look at the new file in a separate, > side-by-side Microsoft Window. In that case, you could map your "jump to tag" key to a command that would execute gvim -t I'll leave that to you to figure out since it may require ":!start gvim ..." instead of just ":!gvim ..." and I don't do Windows that much. See :help :! :help :!start :help -t :help map.txt HTH, Gary -- Gary Johnson | Agilent Technologies [EMAIL PROTECTED] | Mobile Broadband Division | Spokane, Washington, USA
Jump to tag opens VIM in a new Microsoft Windows XP window
When I jump to a tag reference in a different file, can I have VIM open that file in a new Microsoft Window? As it works now, I jump to the new file in the same VIM session. I have three problems with that: 1. VIM will not jump to the tag unless all of the changes in my current file have been saved. 2. When I jump to the new file, I loose the undo buffer for the previous file. 3. I would prefer to look at the new file in a separate, side-by-side Microsoft Window. I see how I can jump to a new split window in the current VIM session, but that is not preferred/ideal. Thanks, Bill