Michael Henry wrote:
> - You can create Gvim menus for any of the commands that you've
> seen suggested here, so you can use the mouse instead of the
> keyboard.
>
But can't arrange the separate files in staggered windows as shown
in a previous post.
> - You may want to take another look at tabs. In Gvim, you can
> switch between tabs by clicking on the tab, instead of using
> your desktop window manager to switch between Gvim instances.
>
----
I do that... but generally only have main+header (2 files)/window,
each in a tab.
> - You might also look into the Project plugin
> (http://www.vim.org/scripts/script.php?script_id=69), which
> gives you a menu of files in your project that you can select
> from. This can help you reduce the amount of typing to select
> a file.
>
----
I'm wanting something like that but at a desktop level w/multiple
windows...
> - I use Derek Wyatt's "fswitch" plugin to switch between
> "companion" files (as he puts it):
> https://github.com/derekwyatt/vim-fswitch
>
----
Whenever I edit a source (.c/.cc/.cpp, etc or header (.h)),
my gvim is invoked via a function -- and that automatically opens
the "other" member of a pair in a 2nd tab. So I already use the tab
switching (w/a mouse) to go between tabs to look at base file+header.
> If you have a .cc file open and you want to open the
> corresponding .h file, fswitch can find it and open it for
> you. There are other similar plugins to try as well.
>
> - I greatly enjoy fuzzy file finders. I routinely use CtrlP
> (https://github.com/ctrlpvim/ctrlp.vim.git) and LustyExplorer
> (https://github.com/sjbach/lusty.git) to avoid having to type
> all the characters in a filename. If you are trying to reduce
> the amount of typing, you may want to consider such a plugin.
>
---
In bash, I have file completion, which helps.
> - Similarly, if you aren't already using tags, you may want to
> consider installing Exuberant Ctags and generating a ``tags``
> file for your entire project. I find this feature
> indispensable for navigating through my codebase. When I want
> to find the definition of a function, I just place my cursor
> on the identifier in my current file and press a key; but in
> Gvim, you can use the mouse to follow the tag as well, saving
> keystrokes.
>
----
I've tried that a few times, but never found the tags to be
that useful -- required too much thinking to use and that distracted
me from the task.
Here's another rub -- and why I like the mouse for navigating.
using the keyboard for navigating is too analytical and is more likely
to interfere with the thinking about what I'm doing, which is rather
analytical. Compared to mouse moving, which doesn't seem to use
my analytical-verbal skills so much and feels more unconscious -- in
so much as I don't have to think about it, so it doesn't cause much
"crosstalk" in my analytical thinking.
> Michael Henry
>
Thanks for the pointers & suggestions -- appreciate them, even if
they don't solve my immediate problem, I still tend to file things
away to investigate and maybe use in other ways later...
-linda
--
--
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.
Sunday, April 9, 2017
Re: RFE: enable gvim to open a buffer or tab in a new window
Jacky Liu wrote:
> I wrote a script to implement the side-by-side view with vim. See if it meets your need.
To give you an idea of my desktop (note 7-8 vim windows are
minimize that have 2 files(in two tabs) each) besides the visible
ones.
It isn't like this all of the time, but this proj has more files
than usual.
This shows one meaning of "staggered" -- so I can see the titles
no matter which windows are on top.
The status wins on the upper right are usually covered to some or most
extent, but I do like to peek at them periodically. Error window is
upper left, and compile and cmd window down right.
The project thing would be neat if it would open them in separate
windows (sigh).
I am showing my desktop to give you an idea of how much I don't use
a grid to layout my windows...but use the Window manager to bring
files forward as needed (or from minimized state)...
--
--
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.
> I wrote a script to implement the side-by-side view with vim. See if it meets your need.
To give you an idea of my desktop (note 7-8 vim windows are
minimize that have 2 files(in two tabs) each) besides the visible
ones.
It isn't like this all of the time, but this proj has more files
than usual.
This shows one meaning of "staggered" -- so I can see the titles
no matter which windows are on top.
The status wins on the upper right are usually covered to some or most
extent, but I do like to peek at them periodically. Error window is
upper left, and compile and cmd window down right.
The project thing would be neat if it would open them in separate
windows (sigh).
I am showing my desktop to give you an idea of how much I don't use
a grid to layout my windows...but use the Window manager to bring
files forward as needed (or from minimized state)...
--
--
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.
Re: :tabdo -- get back to original tab
On Mon, Apr 10, 2017 at 3:06 AM, 'Suresh Govindachar' via vim_use
<vim_use@googlegroups.com> wrote:
> Hello,
>
> Any suggestions for getting back to the starting tab after issuing the
> following command?:
>
> :tabdo windo set nocursorbind
>
> Thanks,
>
> --Suresh
:let save_tab = tabpagenr()
:let save_win = winnr()
:tabdo windo set nocursorbind
:exe "tabnext" save_tab
:exe save_win "wincmd w"
See
:help tabpagenr()
:help winnr()
:help :tabnext
:help :wincmd
:help CTRL-W_w
Of course, this would not have worked if your tabdo command could have
opened or closed tabs and/or windows.
Best regards,
Tony.
--
--
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.
<vim_use@googlegroups.com> wrote:
> Hello,
>
> Any suggestions for getting back to the starting tab after issuing the
> following command?:
>
> :tabdo windo set nocursorbind
>
> Thanks,
>
> --Suresh
:let save_tab = tabpagenr()
:let save_win = winnr()
:tabdo windo set nocursorbind
:exe "tabnext" save_tab
:exe save_win "wincmd w"
See
:help tabpagenr()
:help winnr()
:help :tabnext
:help :wincmd
:help CTRL-W_w
Of course, this would not have worked if your tabdo command could have
opened or closed tabs and/or windows.
Best regards,
Tony.
--
--
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.
:tabdo -- get back to original tab
Hello,
Any suggestions for getting back to the starting tab after issuing the
following command?:
:tabdo windo set nocursorbind
Thanks,
--Suresh
--
--
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.
Any suggestions for getting back to the starting tab after issuing the
following command?:
:tabdo windo set nocursorbind
Thanks,
--Suresh
--
--
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.
Re: RFE: enable gvim to open a buffer or tab in a new window
>
> " Resizing vim window is system specific, need apps like 'wmctrl' ..."
I mean resizing the frame/application window here, not vim window.
--
--
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.
> " Resizing vim window is system specific, need apps like 'wmctrl' ..."
I mean resizing the frame/application window here, not vim window.
--
--
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.
Re: RFE: enable gvim to open a buffer or tab in a new window
I wrote a script to implement the side-by-side view with vim. See if it meets your need.
After sourcing it:
1. To enable the side view, first maximize your Vim window (or drag it large enough. Resizing vim window is system specific, need apps like 'wmctrl' so I didn't do it. You'll have to manually arrange them even if you could fire up a separate frame window anyway)
2. Use :vsplit twice so you now have 3 vertical windows, use the *left* 2 for side view
3. Press Ctrl-I/K/J/L in Normal mode to switch windows alongside 4 direction
4. When inside a window, press \s to toggle the side view status on and off. You would want to turn the left 2 windows on. The status will be shown in the statusline('SView' with green background at the left corner) as well as the column numbers.
5. Windows with the side view status set will automatically try to resize themselves to 80 columns wide and their height to maximum when you switch windows
6. Press + to add a new, minimized window below your current window, new window will automatically be set as a side view window. When you're done just use :q to close it
7. Use :only to close all other windows in the current tab page
8. Inside a window, use :E to open the default 'netrw' plugin to navigate to your target file.
9. If you have the file open in another place and want to move it to a side view window, first move to that place, press \\(backslash twice) to save the full path to register @", then move to the side view window and use :edit command then ^R"(ctrl-r and ") to paste the path in the command line
10. If you have the path in another application, say your system file browser and want to move it into your vim, first copy the path to your system clipboard, then use ^R+ to paste it in vim under command/insert mode.
11. Keep in mind if you leave the side view status on with a window, it will always try to resize itself to 80 columns wide even if there's no other side view windows left.
--
--
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.
After sourcing it:
1. To enable the side view, first maximize your Vim window (or drag it large enough. Resizing vim window is system specific, need apps like 'wmctrl' so I didn't do it. You'll have to manually arrange them even if you could fire up a separate frame window anyway)
2. Use :vsplit twice so you now have 3 vertical windows, use the *left* 2 for side view
3. Press Ctrl-I/K/J/L in Normal mode to switch windows alongside 4 direction
4. When inside a window, press \s to toggle the side view status on and off. You would want to turn the left 2 windows on. The status will be shown in the statusline('SView' with green background at the left corner) as well as the column numbers.
5. Windows with the side view status set will automatically try to resize themselves to 80 columns wide and their height to maximum when you switch windows
6. Press + to add a new, minimized window below your current window, new window will automatically be set as a side view window. When you're done just use :q to close it
7. Use :only to close all other windows in the current tab page
8. Inside a window, use :E to open the default 'netrw' plugin to navigate to your target file.
9. If you have the file open in another place and want to move it to a side view window, first move to that place, press \\(backslash twice) to save the full path to register @", then move to the side view window and use :edit command then ^R"(ctrl-r and ") to paste the path in the command line
10. If you have the path in another application, say your system file browser and want to move it into your vim, first copy the path to your system clipboard, then use ^R+ to paste it in vim under command/insert mode.
11. Keep in mind if you leave the side view status on with a window, it will always try to resize itself to 80 columns wide even if there's no other side view windows left.
--
--
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.
Shift + Insert (behave mswin not working) in latest version.
Sorry if I posted this twice.
So using this installer: ftp://ftp.vim.org/pub/vim/pc/gvim80-069.exe
When installing, I mark the checkbox "create bat files" for console use.
However in the console version ctrl ins + shift ins does not work, I think the entire "behave mswin" does not work at all.
I know for a fact, that in gvim74 it worked. Something was screwed in the installer?
--
--
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.
So using this installer: ftp://ftp.vim.org/pub/vim/pc/gvim80-069.exe
When installing, I mark the checkbox "create bat files" for console use.
However in the console version ctrl ins + shift ins does not work, I think the entire "behave mswin" does not work at all.
I know for a fact, that in gvim74 it worked. Something was screwed in the installer?
--
--
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.
Subscribe to:
Posts (Atom)

