vim question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: plug-discuss@lists.plug.phoenix.az.us
日付:  
題目: vim question
On 14 Oct 2003, Bart Garst wrote:
> Is there a way to automatically 'fix' tabs?
>
> My problem is I have a function I'm modifying (C++), I need to wrap some
> code in an if statement. Once I add the if and it's braces the following
> lines need to be indented.
>
> Emacs has a menu with 'indent line or region' that does this. Does vim
> have something similar?


I think you may be looking for auto-indent.

:set ai

        --Ted