Re: What happened to "Search hit BOTTOM, continuing at TOP"?

2019-09-06 Thread Bram Moolenaar


> Speaking of this " W' indicator, why was it chosen to _add_ it to the 
> '[N/M]' string instead of _prepending_ "W " before one? 
> 
> The point is, if _appended_, then at the moment of wrapping, the expected 
> position of '[N/M]' changes slightly to the left, which isn't exactly nice 
> (like, why the information is jumping in front of our eyes, etc). While if 
> _prepended_, the counter itself stays exactly where it was, and only this 
> sign "W" appears on the left. Don't know if I'm right or wrong here but I 
> personally certainly like the prepended option better.
> 
> If you agree, then here's a patch for src/search.c, which seems to fix it 
> (I'm not a programmer, I also don't know ANYTHING about C at all, and these 
> few lines here may be completely wrong and stupid, so, please, feel 
> absolutely free to change it if needed):
> 
> 
> 5014c5014,5017
> < STRCPY(t + len, " W");
> ---
> > char t_tmp[len + 2];
> > STRCPY(t_tmp, t);
> > STRCPY(t + 0, "W ");
> > STRCPY(t + 2, t_tmp);
> 

I like it.  No need to send a patch.

-- 
hundred-and-one symptoms of being an internet addict:
199. You read this entire list of symptoms, looking for something
 that doesn't describe you.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/201909061840.x86IeeuF023010%40masaka.moolenaar.net.


Re: What happened to "Search hit BOTTOM, continuing at TOP"?

2019-09-06 Thread ds
Hi!


Speaking of this " W' indicator, why was it chosen to _add_ it to the 
'[N/M]' string instead of _prepending_ "W " before one? 

The point is, if _appended_, then at the moment of wrapping, the expected 
position of '[N/M]' changes slightly to the left, which isn't exactly nice 
(like, why the information is jumping in front of our eyes, etc). While if 
_prepended_, the counter itself stays exactly where it was, and only this 
sign "W" appears on the left. Don't know if I'm right or wrong here but I 
personally certainly like the prepended option better.

If you agree, then here's a patch for src/search.c, which seems to fix it 
(I'm not a programmer, I also don't know ANYTHING about C at all, and these 
few lines here may be completely wrong and stupid, so, please, feel 
absolutely free to change it if needed):


5014c5014,5017
< STRCPY(t + len, " W");
---
> char t_tmp[len + 2];
> STRCPY(t_tmp, t);
> STRCPY(t + 0, "W ");
> STRCPY(t + 2, t_tmp);




-- 
ds




On Thursday, August 29, 2019 at 12:30:12 PM UTC+1, Christian Brabandt wrote:
>
>
> On Do, 29 Aug 2019, Marius Gedminas wrote: 
>
> > (I like the [N/M] index, but I also think the W is way too subtle, and I 
> > find myself looping again and again.) 
>
> When the N/M index was first introduced, it did show the error message 
> and forced a small delay to make sure it can be read before the N/M 
> index would potentially overwrite it. However people complained about 
> vim being unresponsive, so it was changed and the 'W' indicator was 
> added as a compromise. 
>
> Best, 
> Christian 
> -- 
> Jeder Tag an dem du nicht lächelst, ist ein verlorener Tag. 
> -- Charlie Chaplin 
>

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/d3b45657-181c-43cb-ae37-b2b300dcd01d%40googlegroups.com.


Re: Unwanted underline

2019-09-06 Thread Adrian Petrescu

On 09/05 11:49AM, JH wrote:

Please provide exact reproduction steps. Start with vim --clean


Wow, that makes different, it displays color, no underline any more,
how can I run the vim without --clean?


All `--clean` does is skip loading .vimrc and all other user-provided 
configuration.




Also, I use .vimrc configure, what the statement can I add to .vimrc
to turn the color off?


Well, it sounds like it's not something you need to add *to* .vimrc, but 
rather something you need to remove *from* .vimrc to solve this problem. 
If you post yours, we can probably help you diagnose it; likely it's 
some ANSI color code that your terminal doesn't know about and is 
choosing to represent it via underline.


--
Adrian

--
--
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190905193848.2dldtnjwwxvnhchk%40gauss.localdomain.


Re: Unwanted underline

2019-09-06 Thread Christian Brabandt


On Do, 05 Sep 2019, JH wrote:

> On 9/4/19, Christian Brabandt  wrote:
> >
> > On Mi, 04 Sep 2019, hh h wrote:
> >
> >>
> >> I installed 2:8.0.1453-1ubuntu1.1 in Ubuntu 18.4, could anyone explain why
> >> vim display underline in system key word, I don't want those underline,
> >> how can I set .vimrc to remove those underline?
> >>
> >> #include 
> >> #include 
> >> #include 
> >> #include 
> >
> > That is quite a brief problem description. From the context, I assume
> > you see this with C files, however I don't see that with the mentioned
> > header lines.
> 
> With C++ file.
> 
> 
> > Please provide exact reproduction steps. Start with vim --clean
> 
> Wow, that makes different, it displays color, no underline any more,
> how can I run the vim without --clean?

So check your configuration.

> Also, I use .vimrc configure, what the statement can I add to .vimrc
> to turn the color off?

You don't want colors? Then configure vim to not use syntax 
highlighting.
(:h :syn-off)

Best,
Christian
-- 
Mit einer geballten Faust kann man keinen Händedruck wechseln.
-- Indira Gandhi

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20190906075455.GU25942%40256bit.org.