2007. 11. 3. 21:02 Unix

vi에서 들여쓰기

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
                             UNIX GURU UNIVERSE
                                UNIX HOT TIP

                       Unix Tip 2505 - November 10, 2005

                   http://www.ugu.com/sui/ugu/show?tip.today
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

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
반응형
Posted by She쥐포s

블로그 이미지
She쥐포s
Yesterday
Today
Total

달력

 « |  » 2024.3
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

최근에 올라온 글

최근에 달린 댓글

글 보관함