On Tue, Oct 14, 2008 at 01:16:04AM -0200, Roberto Miura Honji wrote: > You can delete this line with :%g/regex/d > In your case, try this: > :%g/^ *$/d to delete lines with spaces. > :%g/^^I*$/d to delete lines with only tabs.
Save yourself a keystroke: If you're going to run :g[lobal] over the entire file, you don't need to specify the % range. > 2008/10/14 Chris <[EMAIL PROTECTED]> > > > > > I have a few dot rc files with empty regions (white spaces or tab) - > > they can't be seen udner naked eyes - only felt while editing. > > > > Is there any way to delete these empty regions? I've been doing > > Meta-J, x but it's a tedious process. > > > > Thanks. > > > > > > > > > > -- > ---------------------------------------------- > Roberto Miura Honji > LAS - Laboratório de Administração e Segurança de Sistemas > Engenharia de Computação - 2006 > Instituto de Computação - UNICAMP > > email: [EMAIL PROTECTED] (principal) > email: [EMAIL PROTECTED] > msn: [EMAIL PROTECTED] > ------------------------------------------- > > > Staving off carpal tunnel syndrome, one key at a time -- Erik Falor Registered Linux User #445632 http://counter.li.org --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
