Gibt es in VIM integrierte Befehle, die zu den nächsten / vorherigen Leerzeilen navigieren?
:%s/^\s\+$//
Gibt es in VIM integrierte Befehle, die zu den nächsten / vorherigen Leerzeilen navigieren?
:%s/^\s\+$//
Antworten:
Zur Hilfe zur Navigation gehen ( :h navigation):
Cursor motions cursor-motions navigation
These commands move the cursor position. If the new position is off of the
screen, the screen is scrolled to show the cursor (see also 'scrolljump' and
'scrolloff' options).
1. Motions and operators operator
2. Left-right motions left-right-motions
3. Up-down motions up-down-motions
4. Word motions word-motions
5. Text object motions object-motions
6. Text object selection object-select
7. Marks mark-motions
8. Jumps jump-motions
9. Various motions various-motions
Text object motionsscheinen der wahrscheinlichste Kandidat zu sein (oder würden Jumps?). Gehe zu object-motionsund drücke <c-]>( Ctrl
]):
5. Text object motions object-motions
(
( [count] sentences backward. exclusive motion.
)
) [count] sentences forward. exclusive motion.
{
{ [count] paragraphs backward. exclusive motion
}
} [count] paragraphs forward. exclusive motion.
Bingo!
:help) ist eine der besten Online-Softwaredokumentationen (wie in "Programminterne"), auf die ich gestoßen bin.
{und}ist was du willst.