On Tue, 7 Mar 2023 09:40:39 +0100
Christian Brabandt wrote:
> Try using yvb which should force the motion to be inclusive, e.g.
> include the right-most character. See :h o_v
Nice! Thanks for this. Didn't know.
> > It's not gonna be changed upstream, but I bet patching your own
> > copy of
On Di, 07 Mär 2023, Enan Ajmain wrote:
> To answer your question, vim motions are of two types:
> - ':h inclusive'
> - ':h exclusive'
>
> I don't understand that helpdoc well, but I understand that this is the
> reason 'yb' excludes the character the cursor was on. For fun, try
> 'yge',
вт, 7 мар. 2023 г., 10:21 Enan Ajmain <3nan.ajm...@gmail.com>:
> This behavior annoys me as well. Fortunately I don't need to yank
> backward too often.
>
> To answer your question, vim motions are of two types:
> - ':h inclusive'
> - ':h exclusive'
>
> I don't understand that helpdoc well,
This behavior annoys me as well. Fortunately I don't need to yank
backward too often.
To answer your question, vim motions are of two types:
- ':h inclusive'
- ':h exclusive'
I don't understand that helpdoc well, but I understand that this is the
reason 'yb' excludes the character the
visual select makes even less sense.
better to just use emacs then.
pon, 6. mar 2023. 21:28 Owajigbanam Ogbuluijah је
написао/ла:
> I often consider the cursor as the left edge of the block. This way,
> yanking backwards makes sense. Ensure the left edge of your cursor is
> outside (i.e.
Set 'vritualedit' to onemore:
:set virtualedit=onemore
That will let it go just beyond the end of the line, but no further. Might
do exactly what Igabanam is suggesting. That combined with something like:
:nnoremap Y ly
Solves it for me, though you have to not be using Y (I use 'yy',
I often consider the cursor as the left edge of the block. This way,
yanking backwards makes sense. Ensure the left edge of your cursor is
outside (i.e. "right-bounding") the text you want to yank. Then the
solution in Salman Halim's answer makes sense.
This works for all cases except when you
i'm saying that: backward yank doesn't include the ] where your cursor
currently is
so i always lose that one last character.
i already have easymotion plugin, and that's why i just use 'f', even
tought i'm familiar with F for backwards, but just want to do less
keystrokes, that's whole point
On Mon, Mar 6, 2023 at 11:17 AM Igor Lerinc wrote:
> imagine i have line of text:
> echo "Zdravo, " . $_GET["ime"] . " " . $_GET["prezime"] . "." .
> "";
>
> my cursor is *█*
>
> echo *█*"Zdravo, " . $_GET["ime"] . " " . $_GET["prezime"] . "." .
> "";
>
> and then, i move cursor to ] with *f*
>