Hello all!
I switched from Mac BBEdit to vim and need help with a grep pattern. I am still a beginner and putting up a VIM cheat file in LATEX for all vim-commands, which are part of my "repertoire". My search pattern is following, and there are many of them in my file:
Search:
\begin{center}
\textcolor{mygray}{\large w}
\end{center}
Replace:
\vimcode{w}
My try was the following:
:s/\begin{center}\n\(\s\+\)\textcolor{mygray}{\large \([^}]\+\)}\s+\end{center}\s+/$1\vimcode{$2}/g
Do I have to escape all \begin with \\begin ? This would be cumbersome and a reason to give up VIM. Already to escape the capturing parenthesis \( \) you have to get used to.
Is there a possibility to visual select some lines, to edit them in the search dialogue? Would it be possible, to put visual selected lines into the search dialogue with all special signs escaped automatically?
Thank you in advance
marek
--
--
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 1, 2018
Re: feedkeys \ Enter key
It results in that, I think double quote is needed to embrace call feedkey and inside double single quote ''
"D:/Logiciels/Vim/feedkeys(:WEATHER/" Illegal file name
Error detected while processing command line:
2018-04-01 11:30 GMT+02:00 Lifepillar <lifepillar@lifepillar.me>:
On 01/04/2018 11:18, Ni Va wrote:
Le dimanche 1 avril 2018 11:01:45 UTC+2, Lifepillar a écrit :
On 01/04/2018 10:09, Ni Va wrote:
Hi,
In order to easily test command I have mapped this following.
feedkeys enters well WEATHER chars but not <Enter> key.
nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
Surround feedkeys()'s argument in double, not single, quotes.
Life.
nnoremap <F5> :!start gvim -c "call feedkeys(":WEATHER\<cr>")"<cr>
gives me error
Try: ... 'call feedkeys(":WEATHER\<cr>")'<cr>
i.e., use single quotes for the outer quoting.
Life.
--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/UYd_FOUyDw0/unsubs .cribe
To unsubscribe from this group and all its topics, 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: feedkeys \ Enter key
On 01/04/2018 11:18, Ni Va wrote:
> Le dimanche 1 avril 2018 11:01:45 UTC+2, Lifepillar a écrit :
>> On 01/04/2018 10:09, Ni Va wrote:
>>> Hi,
>>>
>>> In order to easily test command I have mapped this following.
>>>
>>> feedkeys enters well WEATHER chars but not <Enter> key.
>>>
>>> nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
>>
>> Surround feedkeys()'s argument in double, not single, quotes.
>>
>> Life.
>
> nnoremap <F5> :!start gvim -c "call feedkeys(":WEATHER\<cr>")"<cr>
>
> gives me error
Try: ... 'call feedkeys(":WEATHER\<cr>")'<cr>
i.e., use single quotes for the outer quoting.
Life.
--
--
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.
> Le dimanche 1 avril 2018 11:01:45 UTC+2, Lifepillar a écrit :
>> On 01/04/2018 10:09, Ni Va wrote:
>>> Hi,
>>>
>>> In order to easily test command I have mapped this following.
>>>
>>> feedkeys enters well WEATHER chars but not <Enter> key.
>>>
>>> nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
>>
>> Surround feedkeys()'s argument in double, not single, quotes.
>>
>> Life.
>
> nnoremap <F5> :!start gvim -c "call feedkeys(":WEATHER\<cr>")"<cr>
>
> gives me error
Try: ... 'call feedkeys(":WEATHER\<cr>")'<cr>
i.e., use single quotes for the outer quoting.
Life.
--
--
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.
Saving lowecase variables in session files
Sometimes, I change some plugin settings during a session.
Such changes are not reflected by :mksession because the
variables I have changed start with a lower-case letter.
How would you add such variables to a session file?
Thanks,
Life.
--
--
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.
Such changes are not reflected by :mksession because the
variables I have changed start with a lower-case letter.
How would you add such variables to a session file?
Thanks,
Life.
--
--
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: feedkeys \ Enter key
Le dimanche 1 avril 2018 11:01:45 UTC+2, Lifepillar a écrit :
> On 01/04/2018 10:09, Ni Va wrote:
> > Hi,
> >
> > In order to easily test command I have mapped this following.
> >
> > feedkeys enters well WEATHER chars but not <Enter> key.
> >
> > nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
>
> Surround feedkeys()'s argument in double, not single, quotes.
>
> Life.
nnoremap <F5> :!start gvim -c "call feedkeys(":WEATHER\<cr>")"<cr>
gives me error
--
--
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 01/04/2018 10:09, Ni Va wrote:
> > Hi,
> >
> > In order to easily test command I have mapped this following.
> >
> > feedkeys enters well WEATHER chars but not <Enter> key.
> >
> > nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
>
> Surround feedkeys()'s argument in double, not single, quotes.
>
> Life.
nnoremap <F5> :!start gvim -c "call feedkeys(":WEATHER\<cr>")"<cr>
gives me error
--
--
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: feedkeys \ Enter key
On 01/04/2018 10:09, Ni Va wrote:
> Hi,
>
> In order to easily test command I have mapped this following.
>
> feedkeys enters well WEATHER chars but not <Enter> key.
>
> nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
Surround feedkeys()'s argument in double, not single, quotes.
Life.
--
--
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.
> Hi,
>
> In order to easily test command I have mapped this following.
>
> feedkeys enters well WEATHER chars but not <Enter> key.
>
> nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
Surround feedkeys()'s argument in double, not single, quotes.
Life.
--
--
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.
feedkeys \ Enter key
Hi,
In order to easily test command I have mapped this following.
feedkeys enters well WEATHER chars but not <Enter> key.
nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
--
--
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 order to easily test command I have mapped this following.
feedkeys enters well WEATHER chars but not <Enter> key.
nnoremap <F5> :!start gvim -c "call feedkeys(':WEATHER\<cr>')"<cr>
--
--
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)