Wednesday, February 14, 2024

Re: Commit: patch 9.1.0009: Cannot easily get the list of matches

I was hoping it would do multiline regex searches as well (help doesn't mention it can't do it)

Use case, find all C functions in, let's say src/highlight.c from vim sources:

Regex is \v^\s*(\k+\_s+){1,}\k+\(.{-}\)\_s*\{\s*$
And even though I can find them using regular interactive search (/) and :call search('\v^\s*(\k+\_s+){1,}\k+\(.{-}\)\_s*\{\s*$')
the result of the next call to matchbufline is empty:

    :call matchbufline(bufnr(), '\v^\s*(\k+\_s+){1,}\k+\(.{-}\)\_s*\{\s*$', 1, '$')

Apparently it goes line by line matching the pattern and thus fails.


Screenshot from 2024-02-14 22-56-07.png

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/e0bfaa44-a1c8-4b4a-9588-54c13ca9ac57n%40googlegroups.com.

Tuesday, February 13, 2024

Syntax highlighting issue with blocks in .cmd and .bat files

Hello,

Hoping an active Vim developer team member can help.

For gVim win32 64-bit nightly builds:

I am suddenly seeing a syntax highlighting issue with blocks in .cmd and
.bat files. I think it may be from an update that occurred between
02-03-2024 and 02-11-2024.

I am seeing several right parenthesis ')' highlighted in red as if the
block does not have a matching '(', but the blocks are closed. Too many
unique examples of code to nail down, but seems it may be related to the
keyword 'echo' (but not always). Below is a simple example that will
cause ')' to highlight in red.

if [%1] == [/echo] (
set "aaa=ok"
)

Thanks,
Chainsaw

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/01e926ab-2101-4adc-ad9d-ec0f57b2bfe9%40fourbarlinkage.net.

Sunday, February 11, 2024

Re: Visually selecting multi-lines inside backticks

Because then there would be things like this:


Screenshot 2024-02-12 132702.png
On Saturday, February 3, 2024 at 3:50:49 AM UTC+11 Manas wrote:
Hi, this is quite a stupid question but why doesn't backticks work for
multi-line selection via something like vi`

I have some blocks like

`
lorem ipsum
`

and I want to select whole inside the backticks. I am reading that ',",` are
only matched in the same lines.

Thanks
--
Manas

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/699cc162-b0bc-4275-89e8-177253ff5ee3n%40googlegroups.com.

Re: Question about Vim directories

Hello Urbán,

:h vimrc may help here.

Specifically…

Places for your personal initializations:
        Unix         $HOME/.vimrc or $HOME/.vim/vimrc
        MS-Windows   $HOME/_vimrc, $HOME/vimfiles/vimrc
                     or $VIM/_vimrc

        Amiga        s:.vimrc, home:.vimrc, home:vimfiles:vimrc
                     or $VIM/.vimrc
        Haiku        $HOME/config/settings/vim/vimrc


Best,
Igbanam

On Sun, Feb 11, 2024 at 10:23 AM Gabor Urban <urbangabo@gmail.com> wrote:
Hi guys,

I need a bit help now. 

I switched to a new laptop running Win11 Home edition. My old computer went with Win7 and I have used Vim 8.2 with much fun.

I had two directories, one was vim82 with official files coming with the install kit, and vimfiles for my local stuff. My _vimrc was in my local home directory which was set from the  startup environment.

On my new computer I installed Vim91 which I find to be much better. On the other hand I have the vim91 folder only. I have some local files I do not want to mix with the official ones. Where should I put them to be separated? Where should be my local _vimrc.

Thanks for any help in advance,

--
Urbán Gábor
 
Linux is like a wigwam: no Gates, no Windows and an Apache inside.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAL%3D1hhwPZHXpL%3D_Z%2BNc6Wo_J3_mbeHPZkwX4Fq5cVaBCGxO0sw%40mail.gmail.com.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAOmRJrc%3DW4nWPAQ4FwY12W9_EWUqqc55OsgKvgY4hTNrffCwFg%40mail.gmail.com.

Question about Vim directories

Hi guys,

I need a bit help now. 

I switched to a new laptop running Win11 Home edition. My old computer went with Win7 and I have used Vim 8.2 with much fun.

I had two directories, one was vim82 with official files coming with the install kit, and vimfiles for my local stuff. My _vimrc was in my local home directory which was set from the  startup environment.

On my new computer I installed Vim91 which I find to be much better. On the other hand I have the vim91 folder only. I have some local files I do not want to mix with the official ones. Where should I put them to be separated? Where should be my local _vimrc.

Thanks for any help in advance,

--
Urbán Gábor
 
Linux is like a wigwam: no Gates, no Windows and an Apache inside.

--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAL%3D1hhwPZHXpL%3D_Z%2BNc6Wo_J3_mbeHPZkwX4Fq5cVaBCGxO0sw%40mail.gmail.com.

Friday, February 2, 2024

Re: Visually selecting multi-lines inside backticks





------ Original Message ------
From: "Manas" <manas18244@iiitd.ac.in>
To: "vim" <vim_use@googlegroups.com>
Sent: Friday, 2 Feb, 2024 At 4:50 PM
Subject: Visually selecting multi-lines inside backticks

Hi, this is quite a stupid question but why doesn't backticks work for
multi-line selection via something like vi`

I have some blocks like

`
lorem ipsum
`

and I want to select whole inside the backticks. I am reading that ',",` are
only matched in the same lines.

Thanks
--
Manas

--
--

Hi Manas
there may be a niftier way, but I wd search for the backtick:

/`

then type V to go into Visual line mode, then n to search for the second tick.

Then you can type : if you are after a substitute command, or y to yank the marked material.

regards - Chris

Visually selecting multi-lines inside backticks

Hi, this is quite a stupid question but why doesn't backticks work for
multi-line selection via something like vi`

I have some blocks like

`
lorem ipsum
`

and I want to select whole inside the backticks. I am reading that ',",` are
only matched in the same lines.

Thanks
--
Manas

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