붙여넣기하면 라인들이 tab 되는문제? [3]

붙여넣기하면 라인들이 tab 되는문제?

2001-08-08 00:00 - 김갑수

복사후

vi 에디터에 붙여넣기하면

계단식으로 tab되어 보기 싫게 되는 것은

어떻게 해결합니까?

아래와 같이 표시되거든요....

#include
19 #include
20 #include
21 #include
22 #include
23 #include
24 #include
25 #include "smp_common.h"
26 #include "phonegui.h"




붙여넣기하면 라인들이 tab 되는문제?

2001-08-08 00:00 - 정성권

vi에서 복사/붙여넣기 할때는

set number 옵션을 끄세요

그리고

xterm을 사용해서 복사는 아래와 같습니다.


While using the xterm, you may want to select and copy certain strings. If you want to use this function, select the Emulate 3 Button in the Xconfig dialog box.

1. Click on the left mouse button at the starting point of the string you want to copy.
2. Press the right mouse button at the ending point of the string to copy.
The selected string will be highlighted.
3. Place the text cursor at the location where you want to paste the string.
4. Press either Shift+Insert or the two buttons simultaneously.


.exrc 파일에서 set autoindent 행을 삭제하세요

2001-08-08 00:00 - ellije

탭이 삽입되면서 계단처럼 미끄러지는 것은 autoindent 옵션때문입니다.

vi 시작 이후 :set autoindent 옵션으로 autoindent를 설정하지 않았다면 홈디렉토리에 있는 .exrc 파일에 set autoindent 행이 있을 것입니다.

그 행을 삭제 한 후 다시 vi를 시작하고 붙여넣기를 해보세요.

그럼...


붙여넣기 할 때 tab 되는문제 해결하기

2001-08-08 00:00 - 죠리퐁

vim을 사용하시면서 가장 확실한 방법은
붙여넣기를 하시기전에
:set paste 라는 설정을 해주시고
붙여넣기가 끝나시면
:set nopaste 로 바꿔 주시면 됩니다.

autoindent와의 문제로 생각되는데
paste 할때만 무시되는 설정이 있는지는 모르겠습니다.

그럼 이만


이전 조회수: 562