After installing v8.0 on two different Windows computers, when I issue a 'zt' to move the cursor location to the top of the screen, there are always 5 lines above the cursor position. I imagine this is a setting, but cannot find. This happens with a number of cursor movements at the top and bottom of the screen. As this is new behavior for me, I am starting to get used to it and even see the advantage, but I would like to be able to control it.
Can someone tell me the setting that controls this?
--
--
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.
Saturday, September 24, 2016
Re: Is vim supporting 24 bit colors?
2016-09-24 7:05 GMT+03:00 Tony Mechelynck <antoine.mechelynck@gmail.com>:
> On Fri, Sep 23, 2016 at 4:26 AM, KiYugadgeter <zyouhousikaku@gmail.com> wrote:
>> Is vim supporting 24 bit colors?
>>
>> I want to use vim on windows10 bash.
>>
>> windows 10 bash is supporting 24bit colors on beta version.
>>
>> Will vim support 24bit colors?
>
> Vim supports between 2 (2^1) and 16777216 (2^24) colors, depending on
> how many _it can tell that_ your terminal supports. This is set by the
> termcap variable t_Co or by the equivalent terminfo setting, and these
> settings depend in turn on the 'term' setting (q.v.) If $TERM is not
> set, and Vim has no way of knowing otherwise, it will set an
> OS-dependent 'term' default: for 32- or 64-bit Windows, 'term'
> defaults to "win32". To see the number of colours Vim thinks that your
> terminal supports, use
> :set t_Co?
&t_Co will never give you 24-bit value. Also termcap/terminfo do not
normally contain information about 24-bit colors support, though tmux
developers has selected some custom setting they use to detect 24-bit
support. Vim AFAIK does not use it.
>
> For me, 256 colors are good enough, and once I set up my vimrc to make
> Vim use (as closely as possible) the same colors in a console and in
> the GUI, I can't tell the difference by the naked eye. See
> http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal
>
> See also ":help term.txt", especially the first two sections.
>
>
> 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.
--
--
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.
> On Fri, Sep 23, 2016 at 4:26 AM, KiYugadgeter <zyouhousikaku@gmail.com> wrote:
>> Is vim supporting 24 bit colors?
>>
>> I want to use vim on windows10 bash.
>>
>> windows 10 bash is supporting 24bit colors on beta version.
>>
>> Will vim support 24bit colors?
>
> Vim supports between 2 (2^1) and 16777216 (2^24) colors, depending on
> how many _it can tell that_ your terminal supports. This is set by the
> termcap variable t_Co or by the equivalent terminfo setting, and these
> settings depend in turn on the 'term' setting (q.v.) If $TERM is not
> set, and Vim has no way of knowing otherwise, it will set an
> OS-dependent 'term' default: for 32- or 64-bit Windows, 'term'
> defaults to "win32". To see the number of colours Vim thinks that your
> terminal supports, use
> :set t_Co?
&t_Co will never give you 24-bit value. Also termcap/terminfo do not
normally contain information about 24-bit colors support, though tmux
developers has selected some custom setting they use to detect 24-bit
support. Vim AFAIK does not use it.
>
> For me, 256 colors are good enough, and once I set up my vimrc to make
> Vim use (as closely as possible) the same colors in a console and in
> the GUI, I can't tell the difference by the naked eye. See
> http://vim.wikia.com/wiki/Using_GUI_color_settings_in_a_terminal
>
> See also ":help term.txt", especially the first two sections.
>
>
> 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.
--
--
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: mapping :h to ;
On Saturday, 24 September 2016 11:40:01 UTC+2, in...@odyschrift.nl wrote:
> I am a novice in gVim. I often need the help function. <shift>:h<space>. I understand I can map this combination of 4 keystrokes to a single key.
> Is ; a good choice?
>
> The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
>
> I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
>
> Has someone an advice for me?
>
> Alle
Thank for your advises. To resume: the function keys F2 till F12 (on my keyboard) are available as 'shortcuts'. It is not advisable to use keys which have already a function in the normal mode of Vim, because then I will loose possible functionality. Perhaps uppercase Q.
For my special question I can change the function of <F1>, because I want to visit the helpfile over particular subjects, mostly, and not open it generally.
When the time is there for more than 11 'shortcuts', I can think about which functionality I will offer for my 'shortcuts'. I understand there are many strategies to move the cursor. I will develop my own strategy and will pick keys dedicated to the alternative strategies. They will be not useful for me.
In the meantime, I will follow discussions over motion strategies in this mailinglist.
Again, thanks for the reactions on my novice-question.
Alle
--
--
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 am a novice in gVim. I often need the help function. <shift>:h<space>. I understand I can map this combination of 4 keystrokes to a single key.
> Is ; a good choice?
>
> The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
>
> I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
>
> Has someone an advice for me?
>
> Alle
Thank for your advises. To resume: the function keys F2 till F12 (on my keyboard) are available as 'shortcuts'. It is not advisable to use keys which have already a function in the normal mode of Vim, because then I will loose possible functionality. Perhaps uppercase Q.
For my special question I can change the function of <F1>, because I want to visit the helpfile over particular subjects, mostly, and not open it generally.
When the time is there for more than 11 'shortcuts', I can think about which functionality I will offer for my 'shortcuts'. I understand there are many strategies to move the cursor. I will develop my own strategy and will pick keys dedicated to the alternative strategies. They will be not useful for me.
In the meantime, I will follow discussions over motion strategies in this mailinglist.
Again, thanks for the reactions on my novice-question.
Alle
--
--
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: mapping :h to ;
On 2016-09-24 11:55, Tony Mechelynck wrote:
> - In most cases, it is safe to use the F and Shift-F "function" keys
> with the exception of <F1> (Help) and sometimes of <F10> (Menu)
> - If you have non-ASCII printing characters on your keyboard, you
> can use them too. For instance, my Belgian keyboard (shown at
> http://users.skynet.be/antoine.mechelynck/other/keybbe.htm )
> includes é § è ç à ù £ µ ² and ³ plus dead-key circumflex,
> dead-key-diaeresis-or-umlaut, and quite a number of special AltGr
> combinations.
To add to Tony's good suggestions, the alt+{key} pairings are usually
available too. It's an extra (half-)key press in my experience but
most terminals reliably send them.
Also, "Q" (also the <shift> there being a (half-)keypress) is one
which, while it technically is used by vim, is one that is almost
never used. Except perhaps in VimGolf.
Having vimmed for over 15 years, I tend to use Q and the F{1-9} keys
for such mappings so as to not overwrite useful functionality.
-tim
--
--
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.
> - In most cases, it is safe to use the F and Shift-F "function" keys
> with the exception of <F1> (Help) and sometimes of <F10> (Menu)
> - If you have non-ASCII printing characters on your keyboard, you
> can use them too. For instance, my Belgian keyboard (shown at
> http://users.skynet.be/antoine.mechelynck/other/keybbe.htm )
> includes é § è ç à ù £ µ ² and ³ plus dead-key circumflex,
> dead-key-diaeresis-or-umlaut, and quite a number of special AltGr
> combinations.
To add to Tony's good suggestions, the alt+{key} pairings are usually
available too. It's an extra (half-)key press in my experience but
most terminals reliably send them.
Also, "Q" (also the <shift> there being a (half-)keypress) is one
which, while it technically is used by vim, is one that is almost
never used. Except perhaps in VimGolf.
Having vimmed for over 15 years, I tend to use Q and the F{1-9} keys
for such mappings so as to not overwrite useful functionality.
-tim
--
--
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: mapping :h to ;
On Fri, 23 Sep 2016 23:02:04 -0700 (PDT)
info@odyschrift.nl wrote:
> I am a novice in gVim. I often need the help function.
> <shift>:h<space>. I understand I can map this combination of 4
> keystrokes to a single key. Is ; a good choice?
No, ";" is used to repeat "f", "F", "t", or "T" search. See :help ;
A better choice is <F1> since it is help on many other apps.
:nnoremap <F1> :help<space>
The default mapping for <F1> is :help<CR> which brings up the
general help file, help.txt
--
--
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.
info@odyschrift.nl wrote:
> I am a novice in gVim. I often need the help function.
> <shift>:h<space>. I understand I can map this combination of 4
> keystrokes to a single key. Is ; a good choice?
No, ";" is used to repeat "f", "F", "t", or "T" search. See :help ;
A better choice is <F1> since it is help on many other apps.
:nnoremap <F1> :help<space>
The default mapping for <F1> is :help<CR> which brings up the
general help file, help.txt
--
--
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: mapping :h to ;
On Sat, Sep 24, 2016 at 8:02 AM, <info@odyschrift.nl> wrote:
> I am a novice in gVim. I often need the help function. <shift>:h<space>. I understand I can map this combination of 4 keystrokes to a single key.
> Is ; a good choice?
>
> The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
>
> I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
>
> Has someone an advice for me?
>
> Alle
Which keys to use as the {lhs} of a mapping depends on your keyboard
layout and on which keys are already mapped. I recommend to use keys
which don't already mean something to Vim, but which it still can
receive from the keyboard driver or the window manager, and that is
not always obvious. Here are a few hints:
- In most cases, it is safe to use the F and Shift-F "function" keys
with the exception of <F1> (Help) and sometimes of <F10> (Menu)
- If you have non-ASCII printing characters on your keyboard, you can
use them too. For instance, my Belgian keyboard (shown at
http://users.skynet.be/antoine.mechelynck/other/keybbe.htm ) includes
é § è ç à ù £ µ ² and ³ plus dead-key circumflex,
dead-key-diaeresis-or-umlaut, and quite a number of special AltGr
combinations.
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.
> I am a novice in gVim. I often need the help function. <shift>:h<space>. I understand I can map this combination of 4 keystrokes to a single key.
> Is ; a good choice?
>
> The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
>
> I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
>
> Has someone an advice for me?
>
> Alle
Which keys to use as the {lhs} of a mapping depends on your keyboard
layout and on which keys are already mapped. I recommend to use keys
which don't already mean something to Vim, but which it still can
receive from the keyboard driver or the window manager, and that is
not always obvious. Here are a few hints:
- In most cases, it is safe to use the F and Shift-F "function" keys
with the exception of <F1> (Help) and sometimes of <F10> (Menu)
- If you have non-ASCII printing characters on your keyboard, you can
use them too. For instance, my Belgian keyboard (shown at
http://users.skynet.be/antoine.mechelynck/other/keybbe.htm ) includes
é § è ç à ù £ µ ² and ³ plus dead-key circumflex,
dead-key-diaeresis-or-umlaut, and quite a number of special AltGr
combinations.
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.
Friday, September 23, 2016
mapping :h to ;
I am a novice in gVim. I often need the help function. <shift>:h<space>. I understand I can map this combination of 4 keystrokes to a single key.
Is ; a good choice?
The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
Has someone an advice for me?
Alle
--
--
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.
Is ; a good choice?
The website <http://vimcasts.org/blog/2013/02/habit-breaking-habit-making/ attracted my attention, thanks to a recent post in this maillist. I understand ; is useful to repeat a character search with t,T,f,F for my period as novice.
I think the best decision is to use ; for the time being, but according to the article j and k are also could alternatives. What about h and l?
Has someone an advice for me?
Alle
--
--
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)