Vim-단락 간 탐색 (빈 줄)


10

VIM에 다음 / 이전 빈 줄로 이동하는 내장 명령이 있습니까?


9
{그리고 }당신이 원하는 것입니다.
cuonglm

^ 위의 질문에 대한 의견이 더 있습니다.
Brain90

빈 줄처럼 보이는 것을 멈추지 않으면 공백이 생길 수 있습니다. 다음과 같은 대체물을 사용하여 제거 할 수 있습니다.:%s/^\s\+$//
JonnyRaa

답변:


10

탐색 도움말로 이동 ( :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 motions가장 가능성이 높은 후보 인 것 같습니다 (또는 Jumps?). 로 이동하여 ( )를 object-motions누릅니다 .<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.

빙고!


Vim 도움말 텍스트 시스템 ( :help)은 내가 접한 최고의 온라인 프로그램 ( "프로그램 내부")과 같은 소프트웨어 문서 중 하나입니다.
Kusalananda

4

다음 빈 줄 사용 (오른쪽 중괄호) :

}

이전 빈 줄 사용 (왼쪽 중괄호) :

{

명령 모드에서 위를 입력하십시오

당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.