=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 2505 - November 10, 2005
http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
VI에서 들여쓰기
UNIX GURU UNIVERSE
UNIX HOT TIP
Unix Tip 2505 - November 10, 2005
http://www.ugu.com/sui/ugu
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
VI에서 들여쓰기
vi 편집기에서 열을 들여쓰거나 들여쓰기를 제거한다.
<< 1단위 이동폭만큼 현재 라인을 왼쪽으로 이동한다.
>> 1단위 이동폭만큼 현재 라인을 오른쪽으로 이동한다.
※ 譯者 註 : 리눅스의 vi 및 windows gvim에서 확인한 결과 > 또는 < 숫자만큼
이동폭이 변경된다.
이동폭은 다음 명령으로 설정할 수 있다.
:set sw
예를 들면, 이동폭을 4문자로 설정하는 명령은 다음과 같다.
:set sw=4
==============================================================
VI INDENTATION
Indent your lines or remove
the indentation in the vi
editor.
<< Shifts the current line to the left by one shift width.
>> Shifts the current line to the right by one shift width.
You can set the shift width
by command
:set sw
For example, the command to
set the shift width to 4
characters is
:set sw=4
This tip generously supported by: neetas@noida.hcltech.com
반응형