Programing

vi 편집기에서 한 단어를 왼쪽으로 이동하는 방법

lottogame 2020. 6. 26. 08:09
반응형

vi 편집기에서 한 단어를 왼쪽으로 이동하는 방법


단축키 w사용 하여 커서를 한 단어 오른쪽으로 이동합니다. 단어를 왼쪽으로 이동하는 단축키가 있습니까?


b한 단어 뒤로 이동 하는 사용

w한 단어 앞으로 이동 하는 사용

여기 당신에게 유용한 치트 시트가 있습니다

대체 텍스트

출처 : http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html


그것은이다 b.

여기에서 다른 동작을 볼 수 있습니다.

http://vimdoc.sourceforge.net/htmldoc/motion.html#word-motions

일반적으로 Vim 명령은

카운트 동작 동작

어디:

count 는 실행하려는 횟수이며 기본값은 1입니다.

action 은 분명히 action입니다 : ddelete, cchange, default는 비어 있으며 단순히 이동을 의미합니다

motion is the direction, you got that already


In addition to the b movement mentionned in the other answers, another movement which may be interesting is ge.

It brings you to the last letter of the word on the left. When b is considered as the opposite of w, ge can be considered as the opposite of e which brings you to the end of the current word.

Also note that all of those word-wise movement have a WORD-wise equivalent: W, B, E and gE which are "faster". For the difference between words and WORDS see: :h word.


yes, you can use "b" to backforward a word, and in advance, "2b" to move back 2 words


제목에 따라 왼쪽 (뒤로)으로 이동하려고합니다. b그렇습니다.

참고 URL : https://stackoverflow.com/questions/4488979/how-to-move-one-word-left-in-vi-editor

반응형