> Is it possible to hide empty lines in vim whithout leaving anyhing in
> it's place? (unlike :fold)
>
> A behaviour like:
>
> original file:
> 11 }
> 12
> 13 function random(){
> 14 return 2;
> 15 }
>
> becames:
> 11 }
> 13 function random(){
> 14 return 2;
> 15 }
Not really.
If you just need it on a temp basis, you can do something like
:g/^\s*$/d
to delete them all from the file, and then undo it. Just don't
edit in this state or you'll have to undo your changes to get to
the undo for the space-removal.
Alternatively, you could use the merge algorithm of your favorite
VCS to re-add the known spaces from a "spaces-branch". That way,
you could edit the file sans-spaces and then merge the spaces
back in from that spaced branch.
Even though it's not a "why of course you can do this" sort of
answer, I hope this helps.
-tim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---