About: Converting tabs to spaces   Sponge Permalink

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

To insert space characters whenever the tab key is pressed, set the 'expandtab' option: :set expandtab With this option set, if you want to enter a real tab character use Ctrl-V key sequence. To control the number of space characters that will be inserted when the tab key is pressed, set the 'tabstop' option. For example, to insert 4 spaces for a tab, use: :set tabstop=4 :retab To change the number of space characters inserted for indentation, use the 'shiftwidth' option: :set shiftwidth=4 For example, to get the following coding style, use the following set of options:

AttributesValues
rdfs:label
  • Converting tabs to spaces
rdfs:comment
  • To insert space characters whenever the tab key is pressed, set the 'expandtab' option: :set expandtab With this option set, if you want to enter a real tab character use Ctrl-V key sequence. To control the number of space characters that will be inserted when the tab key is pressed, set the 'tabstop' option. For example, to insert 4 spaces for a tab, use: :set tabstop=4 :retab To change the number of space characters inserted for indentation, use the 'shiftwidth' option: :set shiftwidth=4 For example, to get the following coding style, use the following set of options:
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 10(xsd:integer)
Category
  • Usage
Author
  • Yegappan
Complexity
  • basic
Created
  • 2001(xsd:integer)
ID
  • 12(xsd:integer)
NEXT
  • 14(xsd:integer)
Rating
  • 1983(xsd:integer)
abstract
  • To insert space characters whenever the tab key is pressed, set the 'expandtab' option: :set expandtab With this option set, if you want to enter a real tab character use Ctrl-V key sequence. To control the number of space characters that will be inserted when the tab key is pressed, set the 'tabstop' option. For example, to insert 4 spaces for a tab, use: :set tabstop=4 After the 'expandtab' option is set, all the new tab characters entered will be changed to spaces. This will not affect the existing tab characters. To change all the existing tab characters to match the current tab settings, use: :retab To change the number of space characters inserted for indentation, use the 'shiftwidth' option: :set shiftwidth=4 For example, to get the following coding style, * No tabs in the source file. * All tab characters are 4 space characters. use the following set of options: :set tabstop=4 :set shiftwidth=4 :set expandtab or as a oneliner: :set tabstop=4 shiftwidth=4 expandtab Add the above settings to your vimrc.
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