I use foldmethod=syntax, but I'm finding it distracting to see the folds 
changing while editing files.

e.g., with this code already in the buffer:

sub foo {
  if (1) {
    if (1) {
      #blah
    }
  }
}

Starting up, I'll see:

+--  7 lines: sub foo {-------

But, as I insert the following before that line:

sub blah {
  if (1) {
    #blah
  }
}

The 'sub foo' section gets folded and unfolded to various levels (as the 
syntax becomes invalid/different at different points).

Does anyone have a nice way to "freeze" the folds to their initial 
values while in insert mode?

-- 
Best,
Ben

-- 
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

Reply via email to