Christian wrote:
> On Di, 14 Apr 2020, Tavis Ormandy wrote:
>
> > To be clear, very detailed reproduction steps:
> >
> > 1. In a new file, write this:
> >
> > one two three
> >
> > 2. Enter normal mode, position the cursor after "two" and enter insert
> > mode, then type "four". It should look like this:
> >
> > one twofour three
> >
> > 3. *before* leaving insert mode, hit CTRL-W. I think it will now look
> > like this:
> >
> > one two three
> >
> > But I want this:
> >
> > one three
>
> Ah got it. That must have been there very long (and I actually like this
> behaviour).
>
> I suppose you want something like this:
>
> diff --git a/src/edit.c b/src/edit.c
> index edd2374e8..5be76db07 100644
> --- a/src/edit.c
> +++ b/src/edit.c
> @@ -4883,9 +4883,7 @@ ins_bs(
> #ifdef FEAT_RIGHTLEFT
> revins_on ||
> #endif
> - (curwin->w_cursor.col > mincol
> - && (curwin->w_cursor.lnum != Insstart_orig.lnum
> - || curwin->w_cursor.col != Insstart_orig.col)));
> + curwin->w_cursor.col > mincol);
> }
> did_backspace = TRUE;
> }
>
>
> If you want to have this included into propper vim, we probably need
> another CPOPTION value (or backspace value?), to make this configurable
> and a test.
Yeah, would need another value in 'backspace'. CTRL-W stopping at the
insert point has always been the behavior.
:set backspace=indent,eol,start,nostop
Can't think of a good name for "nostop", could be improved. Or just:
:set bs=3
--
Friends? I have lots of friends! In fact, I have all episodes ever made.
/// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_use/202004141823.03EIN9KE025404%40masaka.moolenaar.net.