2013-07-22 2 views
0

새 행으로 이동할 때 들여 쓰기를 유지하는 옵션의 이름은 무엇입니까?vim에서 이전 행의 들여 쓰기 유지

매뉴얼 (:help indent.txt)으로부터 실시 예

Subject 
    This is indented and now i press enter 
    I would like indentation to happen automatically 

Subject 
    This is indented and now i press enter 
I currently start here here and indent manually 
+0

작동하지 않았다, 그것은 아니 – Kent

+0

를 작동하는지,'설정 ai'을 시도합니다. – TheMeaningfulEngineer

답변

2

는 :

autoindent는 그럼 이전 행

에서 오목를 사용

:set autoindent 

이 당신이 플러그인 하지 않고 빔을 시작하고 .vimrc 초기화를 건너 뛰는 시도 작동하지 않는 경우

vim -u NONE -N 
+0

플러그인과 .vimrc가 간섭하고있었습니다. – TheMeaningfulEngineer

관련 문제