Friday, March 27, 2009

Vim tips: folding

Folding function:

:1,100 fold
% fold line 1 to 100

:zo
% unfold the block. z open

:zc
% fold the block again. z close

Ok, the fun part is to save this folding thing when you open the file next time, right? Add the following two line to your ~/.vimrc file.
au BufWinLeave * mkview
au BufWinEnter * silent loadview

1 comment:

Unknown said...

1xbet - Best Bet in 1xBet - Download or Install for Android
1xbet is the best betting app in the casinosites.one world created 1xbet 먹튀 for esports. It is a one of the https://jancasino.com/review/merit-casino/ safest and most trusted names among ventureberg.com/ players. It https://deccasino.com/review/merit-casino/ offers a user friendly interface