Yep, exactly !
Your the best !

Thank you very very much

2008/10/14 Teemu Likonen <[EMAIL PROTECTED]>

>
> [2008-10-14 09:49 +0200] François Beaubert wrote:
>
> > Is it possible to extend/modify the proposed solutions to remove blank
> > lines around the cursor and keep just the line containing the cursor,
> > like:
> >
> > Some text
> > blank line
> > blank line            Some text
> > cursor line ----> cursor line
> > blank line            Some text
> > Some text
>
> Ah, you want Emacs' "C-x C-o" (delete-blank-lines), right? In Vim it
> would be
>
>    vipc
>
> on an empty line or series of empty lines. This will delete the whole
> text paragraph too if you happen to be on one, so better emulation of
> Emacs' delete-blank-lines function it would be something like this:
>
>    map <C-x><C-o> :if getline('.') =~ '^\s*$' <bar>
>        \ execute 'normal! vipc' <bar> endif<CR>
>
> >
>

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

Reply via email to