:ls | 열려있는 buffer 보기 |
:b1 | 1번 buffer로 이동 |
z. | 현재 커서가 있는 곳을 화면의 중앙으로 |
^p | 자동완성 |
* Indent (출처: http://stackoverflow.com/questions/235839/how-do-i-indent-multiple-lines-quickly-in-vi)
>> Indent line by shiftwidth spaces
<< De-indent line by shiftwidth spaces
5>> Indent 5 lines
5== Re-indent 5 lines
>% Increase indent of a braced or bracketed block (place cursor on brace first)
=% Reindent a braced or bracketed block (cursor on brace)
<% Decrease indent of a braced or bracketed block (cursor on brace)
]p Paste text, aligning indentation with surroundings
=i{ Re-indent the 'inner block', i.e. the contents of the block
=a{ Re-indent 'a block', i.e. block and containing braces
=2a{ Re-indent '2 blocks', i.e. this block and containing block
>i{ Increase inner block indent
<i{ Decrease inner block indent