About: Auto end-quote html/xml attribute values as you type in insert mode   Sponge Permalink

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

It simply replaces the double or single quotation mark character that you just typed with a pair of them and then moves the cursor in between the pair so you are ready to type the attribute's value. This mapping can get annoying if you find yourself typing quote characters for reasons other than attributes, and you don't want the matching end-quote--you could make it better using a function along the lines of VimTip102 to maybe only do it when the prior charater is an equal sign '=' , but I ended up liking it this simple way.

AttributesValues
rdfs:label
  • Auto end-quote html/xml attribute values as you type in insert mode
rdfs:comment
  • It simply replaces the double or single quotation mark character that you just typed with a pair of them and then moves the cursor in between the pair so you are ready to type the attribute's value. This mapping can get annoying if you find yourself typing quote characters for reasons other than attributes, and you don't want the matching end-quote--you could make it better using a function along the lines of VimTip102 to maybe only do it when the prior charater is an equal sign '=' , but I ended up liking it this simple way.
Version
  • 6(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1018(xsd:integer)
Category
  • HTML
  • XML
  • Brackets
Author
  • Nick Caniglia
Complexity
  • basic
Created
  • 2005(xsd:integer)
ID
  • 1020(xsd:integer)
NEXT
  • 1021(xsd:integer)
Rating
  • 8(xsd:integer)
abstract
  • It simply replaces the double or single quotation mark character that you just typed with a pair of them and then moves the cursor in between the pair so you are ready to type the attribute's value. This mapping can get annoying if you find yourself typing quote characters for reasons other than attributes, and you don't want the matching end-quote--you could make it better using a function along the lines of VimTip102 to maybe only do it when the prior charater is an equal sign '=' , but I ended up liking it this simple way. This is quite smart actually, because for other purposes you should use " and ', ragtag.vim may help you enter them escaped.
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