Re: [OT] Re: In vi/vim delete lines



2008-07-23, 01:04(+02), Janis Papanagnou:
[...]
What are the ways to delete the range of lines, easily and painfully?


In emacs, you can grag the mouse over a range, and then delete . or
set the current mark, move to a new location, and press the delete
region key.

Also with gvim.

Also with vim, provided your terminal has mouse support.

Also with vi if you use GNU screen and an exec filter that
converts the mouse events into vi actions.

With vim, I like the dap d} d]} di(
to delete a paragraph, delete to the end of the paragraph,
delete to the closing "}", delete inside (...)...

Very handy for C-like programming.

--
Stéphane
.



Relevant Pages

  • Re: Mail Merge into Table
    ... I placed my cursor before the last paragraph ... > Header/footer information is stored in section breaks. ... > mark in a document is an implied section break and contains the ... >>> for each merged record. ...
    (microsoft.public.word.tables)
  • Re: changing color of font doesnt work for my bullets
    ... > reselect the para mark of the red bullet and press Ctrl+Space to reset ... I can turn on paragraph marks and select the ...
    (microsoft.public.word.customization.menustoolbars)
  • Re: From the National Review Online...
    ... The key paragraph to understanding Derb's view on ... >Mark, Mark, Mark... ... >You claimed he was stating that "any sort of space exploration is ... Yes, but elsewhere in his article, Derbyshire puts it a lot more ...
    (sci.space.policy)
  • Re: VFP 6: Good Non-GUI Editor to Use
    ... >>of text, mark end of block, perform block operation. ... Read about the map facility of Vim, ... integration into the VFP IDE. ...
    (microsoft.public.fox.programmer.exchange)
  • RE: how do I get out of draft view in word 07?
    ... P:ess SHIFT+LEFT ARROW to deselect the final paragraph ... "Aeneas" wrote: ... Press ALT+LEFT ARROW (deselects the final paragraph mark) ...
    (microsoft.public.word.docmanagement)