Linux
VIM auto Indent
Dork94
2018. 11. 25. 20:21
파일 작성 중 Paste 시에 Indent까지 복사 되는 경우가 있는데 이 경우에 Indent를 다시 재 설정해주고자 할 때가 있습니다.
Command 모드에서 아래와 같이 입력하시면 됩니다(이때 ex 명령 모드가아닌 그냥 명령 모드입니다).
gg=G
참조 : https://stackoverflow.com/questions/506075/how-do-i-fix-the-indentation-of-an-entire-file-in-vi#comment67346120_506075