Re: :terminal mode ques

2017-12-29 Thread Nikolay Aleksandrovich Pavlov
2017-12-29 17:30 GMT+03:00 M Kelly :
>> > Off course you can. Type CTRL+\ CTRL+N and the terminal buffer will become 
>> > a regular buffer without ending the job. Then you can yank, mark or do 
>> > whatever you need.
>> >
>> >
>> > To go back to Terminal mode just type A.
>>
>> ok, yes, but this is more effort than before.  In more detail, if I am in a 
>> non-vim shell I can type cd then click on a dir with the mouse and click 
>> again to paste and its there.  In vim terminal mode I would like to do the 
>> same, if it is at all possible I am not sure.  In a vim terminal I can type 
>> cd then c-\ c-n then hold the mouse and drag across the dir then type i/a 
>> then paste but it would be really awesome if I could use typical shell/term 
>> mouse events when in vim terminal mode.
>
> Maybe go into visual mode (ie c-\ c-n) with a mouse click and then go back to 
> terminal mode with another click ??

 goes to normal mode, not visual. And you should be able to
use :tnoremap to remap mouse clicks as well, though I have not tested
that. There are some examples for other modes in `:h mouse-using`.

>
>
> --
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: toggle cursor guide from via command line?

2017-12-29 Thread Richard Mitchell
On Friday, December 29, 2017 at 1:16:09 PM UTC-5, Tony Mechelynck wrote:
> On Fri, Dec 29, 2017 at 6:23 PM, Richard Mitchell  wrote:
> > Can the cursor guide be toggled via a script/command line?
> >
> > Normally I like the cursor guide on, but I'm writing some code that moves 
> > the cursor around the screen quit a bit and the cursor guide is 
> > distracting.   I'd like the program to be able to disable it on start and 
> > then restore it at the end.
> >
> > Thanks!
> 
> What exactly do you call the cursor guide?
> 
> If you mean the horizontal and/or vertical highlight on the line
> and/or column containing the cursor, that's governed by an option:
> :help 'cursorcolumn'
> :help 'cursorline'
> 
> If you want to freeze the viewport while your script makes changes
> above the first visible line or below the last one, I'm afraid you
> can't, but maybe there is some subtlety I missed.
> 
> If you mean the variously shaped spot at the very character cell
> you're changing, then:
> - in a terminal in a non-Windows OS, it's under control of the
> terminal, the only way Vim can act on it is by means of the termcap
> codes t_SI, t_SR and t_EI (qq.v.)
> - in the Windows console and in gvim, it is under control of
> the 'guicursor' option (q.v.)
> 
> If you mean the (left, right and/or bottom) scrollbars, then in gvim
> they are under control of the 'guioptions' option (q.v.). In a
> terminal they are under control of the terminal and I think Vim can't
> touch them.
> 
> If you mean the numbers at lower right telling you (in numbers) the
> current line and column, that's under control of the 'ruler' and/or
> 'statusline' options (qq.v.).
> 
> Oh, and before you ask, q.v. and qq.v. are common English
> abbreviations for the Latin prases "quem/quam/quod vide" ("look it
> up") and "quos/quas/quæ vide" ("look them up") respectively.
> 
> 
> Best regards,
> Tony.

I'm an idiot and posted to the wrong group, was meant for iterm2.

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: toggle cursor guide from via command line?

2017-12-29 Thread Tony Mechelynck
On Fri, Dec 29, 2017 at 6:23 PM, Richard Mitchell  wrote:
> Can the cursor guide be toggled via a script/command line?
>
> Normally I like the cursor guide on, but I'm writing some code that moves the 
> cursor around the screen quit a bit and the cursor guide is distracting.   
> I'd like the program to be able to disable it on start and then restore it at 
> the end.
>
> Thanks!

What exactly do you call the cursor guide?

If you mean the horizontal and/or vertical highlight on the line
and/or column containing the cursor, that's governed by an option:
:help 'cursorcolumn'
:help 'cursorline'

If you want to freeze the viewport while your script makes changes
above the first visible line or below the last one, I'm afraid you
can't, but maybe there is some subtlety I missed.

If you mean the variously shaped spot at the very character cell
you're changing, then:
- in a terminal in a non-Windows OS, it's under control of the
terminal, the only way Vim can act on it is by means of the termcap
codes t_SI, t_SR and t_EI (qq.v.)
- in the Windows console and in gvim, it is under control of
the 'guicursor' option (q.v.)

If you mean the (left, right and/or bottom) scrollbars, then in gvim
they are under control of the 'guioptions' option (q.v.). In a
terminal they are under control of the terminal and I think Vim can't
touch them.

If you mean the numbers at lower right telling you (in numbers) the
current line and column, that's under control of the 'ruler' and/or
'statusline' options (qq.v.).

Oh, and before you ask, q.v. and qq.v. are common English
abbreviations for the Latin prases "quem/quam/quod vide" ("look it
up") and "quos/quas/quæ vide" ("look them up") respectively.


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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


toggle cursor guide from via command line?

2017-12-29 Thread Richard Mitchell
Can the cursor guide be toggled via a script/command line?

Normally I like the cursor guide on, but I'm writing some code that moves the 
cursor around the screen quit a bit and the cursor guide is distracting.   I'd 
like the program to be able to disable it on start and then restore it at the 
end.

Thanks!

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: :terminal mode ques

2017-12-29 Thread M Kelly
> > Off course you can. Type CTRL+\ CTRL+N and the terminal buffer will become 
> > a regular buffer without ending the job. Then you can yank, mark or do 
> > whatever you need.
> > 
> > 
> > To go back to Terminal mode just type A.
> 
> ok, yes, but this is more effort than before.  In more detail, if I am in a 
> non-vim shell I can type cd then click on a dir with the mouse and click 
> again to paste and its there.  In vim terminal mode I would like to do the 
> same, if it is at all possible I am not sure.  In a vim terminal I can type 
> cd then c-\ c-n then hold the mouse and drag across the dir then type i/a 
> then paste but it would be really awesome if I could use typical shell/term 
> mouse events when in vim terminal mode.

Maybe go into visual mode (ie c-\ c-n) with a mouse click and then go back to 
terminal mode with another click ??


-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.