About: Sample switch between number/nonumber   Sponge Permalink

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

This also works: :map :set number! "" for insert mode :imap :set number! Another alternative is: :map :let &number=1-&number I do this -- which inverts the 'number' option for every window: func! s:NumToggle() let s:current_winnr = winnr() windo set invnumber exec s:current_winnr."winc w" endfunc map :call NumToggle() You can also do this: noremap :if &number \| set nonumber \| else \| set number \| endif Yes, but it's faster to just do: noremap :set number!

AttributesValues
rdfs:label
  • Sample switch between number/nonumber
rdfs:comment
  • This also works: :map :set number! "" for insert mode :imap :set number! Another alternative is: :map :let &number=1-&number I do this -- which inverts the 'number' option for every window: func! s:NumToggle() let s:current_winnr = winnr() windo set invnumber exec s:current_winnr."winc w" endfunc map :call NumToggle() You can also do this: noremap :if &number \| set nonumber \| else \| set number \| endif Yes, but it's faster to just do: noremap :set number!
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 755(xsd:integer)
Author
  • panshdw
Complexity
  • basic
Created
  • 2004-07-02(xsd:date)
ID
  • 757(xsd:integer)
NEXT
  • 758(xsd:integer)
Rating
  • 11(xsd:integer)
abstract
  • This also works: :map :set number! "" for insert mode :imap :set number! Another alternative is: :map :let &number=1-&number I do this -- which inverts the 'number' option for every window: func! s:NumToggle() let s:current_winnr = winnr() windo set invnumber exec s:current_winnr."winc w" endfunc map :call NumToggle() You can also do this: noremap :if &number \| set nonumber \| else \| set number \| endif Yes, but it's faster to just do: noremap :set number!
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