Re: Git trailing blank lines feature configuration
Thomas Nemeth <[email protected]> Sun, 02 Aug 2026 10:21:21 +0200
| Newsgroups | org.kernel.vger.git |
|---|---|
| Organization | désorganisée |
| Message-ID | <2845859.mvXUDI8C0e@cixi> |
Le samedi 1 ao=C3=BBt 2026, 23:05 Johannes Sixt a =C3=A9crit :
> Am 01.08.26 um 10:48 schrieb Thomas Nemeth:
> > If I need to move a previously static function at the end of the
> > public functions section, I switch to VISUAL, select the function
> > to be moved with the blank lines above (I like having neatly
> > spaced
> > code) _and_ including the eol of the function last line.
> > Then I delete it (d), I move to EOF (:$). As the line is blank I
> > just have to paste (p) it back there. The function is moved. The
> > last
> > blank line is kept for other code movements.
>=20
> Sounds like you are using character-wise visual mode (v) instead of
> line-wise mode (V). Use line-wise operations, and these problems are
> gone.
>=20
> Oh, and BTW, just use G instead of :$<Enter>
Old habits don't die easily ;)
=2D-=20
Thomas.=20