domingo, 22 de fevereiro de 2009

VIM: Code Folding.

Instale o plugin python_fold.

Seguem algumas teclas de atalho:

  • zj moves the cursor to the next fold.
  • zk moves the cursor to the previous fold.
  • zo opens a fold at the cursor.
  • zO open all folds under the cursor recursively.
  • zm fold more
  • zM closes all open folds.
  • zc close one fold under the cursor.
  • zC close all folds under the cursor recursively.
  • zr reduce folding:
  • zR decreases the foldlevel to zero — all folds will be open.
  • za when on a closed fold: open it. When on an open fold: close it.
  • zA when on a closed fold: open it recursively. When on an open fold: close it recursively
  • [z move to start of open fold.
  • ]z move to end of open fold.
Fonte:http://undefined.org.ua/blog/2008/01/19/moy-vim/?lang=en

Nenhum comentário:

Postar um comentário