About: Set options with automatic escaping of spaces   Sponge Permalink

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

Regular set: set fp=par\ 70j Our set: Set fp=par 70j Just like the regular :set, multiple options may still be specified: Set fp=par 70j tw=100 ai! ai? The only known caveat is in single word options: Set fp=par 70j ai What you'll end up with is 'fp' set to 'par 70j ai' because Set uses the presence of the =, ! or ? symbols to differentiate the current word as the start of a new option rather than part of the last one. Of course, there is no real reason to use Set unless there is an obscure set, such as: Set mp=texify -b -p --src-specials % vs set mp=texify\ -b\ -p\ --src-specials\ % Of course, there is:

AttributesValues
rdfs:label
  • Set options with automatic escaping of spaces
rdfs:comment
  • Regular set: set fp=par\ 70j Our set: Set fp=par 70j Just like the regular :set, multiple options may still be specified: Set fp=par 70j tw=100 ai! ai? The only known caveat is in single word options: Set fp=par 70j ai What you'll end up with is 'fp' set to 'par 70j ai' because Set uses the presence of the =, ! or ? symbols to differentiate the current word as the start of a new option rather than part of the last one. Of course, there is no real reason to use Set unless there is an obscure set, such as: Set mp=texify -b -p --src-specials % vs set mp=texify\ -b\ -p\ --src-specials\ % Of course, there is:
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1154(xsd:integer)
Category
  • Options
Author
  • Salman Halim
Complexity
  • basic
Created
  • 2006(xsd:integer)
ID
  • 1155(xsd:integer)
NEXT
  • 1156(xsd:integer)
Rating
  • 5(xsd:integer)
abstract
  • Regular set: set fp=par\ 70j Our set: Set fp=par 70j Just like the regular :set, multiple options may still be specified: Set fp=par 70j tw=100 ai! ai? The only known caveat is in single word options: Set fp=par 70j ai What you'll end up with is 'fp' set to 'par 70j ai' because Set uses the presence of the =, ! or ? symbols to differentiate the current word as the start of a new option rather than part of the last one. Of course, there is no real reason to use Set unless there is an obscure set, such as: Set mp=texify -b -p --src-specials % vs set mp=texify\ -b\ -p\ --src-specials\ % Of course, there is: let &mp='texify -b -p --src-specials %' I like the ability to use Set, however; requires much less thought and planning: if I do a regular 'set' and get an error, I just go up a line in the command-line history and change the 'set' to 'Set' and forget it. function! Set( ... ) let result = '' for i in a:000 if ( i !~ '[=!?]' ) let result .= '\' endif " Escaping out any existing spaces takes care of the case where we passed in escaped spaces. let result .= ' ' .escape( i, ' ' ) endfor execute 'set' .result endfunction com! -nargs=+ -complete=option Set call Set( )
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