본문 바로가기

Server

vim 사용중 smartindent off, autoindent off

vim 사용중 smartindent 또는 autoindent 설정이 되어있는 경우에 복사/붙여넣기를 사용하면 자동으로 들여쓰기가 된다.


복사를 하기 위해 해당 vim 창만 자동들여쓰기를 끄려면


:set paste


복사후 들여쓰기 사용하려면


:set nopaste