About: Quickly adding and deleting empty lines   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : 134.155.108.49:8890 associated with source dataset(s)

To add 10 empty lines below the cursor in normal mode, type 10o or to add them above the cursor type 10O. Here is an alternative method that allows you to easily insert or delete blank lines above or below the current line. Your cursor position is not changed, and you stay in normal mode. Put the following mappings in your vimrc: " Ctrl-j/k deletes blank line below/above, and Alt-j/k inserts. nnoremap m`:silent +g/\m^\s*$/d``:noh nnoremap m`:silent -g/\m^\s*$/d``:noh nnoremap :set pastem`o``:set nopaste nnoremap :set pastem`O``:set nopaste

AttributesValues
rdfs:label
  • Quickly adding and deleting empty lines
rdfs:comment
  • To add 10 empty lines below the cursor in normal mode, type 10o<esc></esc> or to add them above the cursor type 10O<esc></esc>. Here is an alternative method that allows you to easily insert or delete blank lines above or below the current line. Your cursor position is not changed, and you stay in normal mode. Put the following mappings in your vimrc: " Ctrl-j/k deletes blank line below/above, and Alt-j/k inserts. nnoremap m`:silent +g/\m^\s*$/d``:noh nnoremap m`:silent -g/\m^\s*$/d``:noh nnoremap :set pastem`o``:set nopaste nnoremap :set pastem`O``:set nopaste
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1065(xsd:integer)
Category
  • Usage
Author
  • Ulfalizer
Complexity
  • basic
Created
  • 2005(xsd:integer)
ID
  • 1066(xsd:integer)
NEXT
  • 1070(xsd:integer)
Rating
  • 17(xsd:integer)
abstract
  • To add 10 empty lines below the cursor in normal mode, type 10o<esc></esc> or to add them above the cursor type 10O<esc></esc>. Here is an alternative method that allows you to easily insert or delete blank lines above or below the current line. Your cursor position is not changed, and you stay in normal mode. Put the following mappings in your vimrc: " Ctrl-j/k deletes blank line below/above, and Alt-j/k inserts. nnoremap m`:silent +g/\m^\s*$/d``:noh nnoremap m`:silent -g/\m^\s*$/d``:noh nnoremap :set pastem`o``:set nopaste nnoremap :set pastem`O``:set nopaste In normal mode, the mappings perform these operations without moving the cursor: * Ctrl-j deletes the line below the current line, if it is blank. * Ctrl-k deletes the line above the current line, if it is blank. * Alt-j inserts a blank line below the current line. * Alt-k inserts a blank line above the current line.
Alternative Linked Data Views: ODE     Raw Data in: CXML | CSV | RDF ( N-Triples N3/Turtle JSON XML ) | OData ( Atom JSON ) | Microdata ( JSON HTML) | JSON-LD    About   
This material is Open Knowledge   W3C Semantic Web Technology [RDF Data] Valid XHTML + RDFa
OpenLink Virtuoso version 07.20.3217, on Linux (x86_64-pc-linux-gnu), Standard Edition
Data on this page belongs to its respective rights holders.
Virtuoso Faceted Browser Copyright © 2009-2012 OpenLink Software