About: Non-native fileformat for your statusline   Sponge Permalink

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

The way to provide this is a function called from within your statusline. Add the following lines to your vimrc and modify as you prefer. I run unix, but this can be slightly altered for other platforms too. If you are on the mac or dos platforms, simply substitute unix for your platform name in the fuction. function ShowFileFormatFlag(var) if ( a:var == 'dos' ) return '[dos]' elseif ( a:var == 'mac' ) return '[mac]' else return '' endif endfunction hi User1 term=bold cterm=bold ctermfg=red ctermbg=darkblue %1*%{ShowFileFormatFlag(&fileformat)}%*

AttributesValues
rdfs:label
  • Non-native fileformat for your statusline
rdfs:comment
  • The way to provide this is a function called from within your statusline. Add the following lines to your vimrc and modify as you prefer. I run unix, but this can be slightly altered for other platforms too. If you are on the mac or dos platforms, simply substitute unix for your platform name in the fuction. function ShowFileFormatFlag(var) if ( a:var == 'dos' ) return '[dos]' elseif ( a:var == 'mac' ) return '[mac]' else return '' endif endfunction hi User1 term=bold cterm=bold ctermfg=red ctermbg=darkblue %1*%{ShowFileFormatFlag(&fileformat)}%*
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 735(xsd:integer)
Category
  • Fileformat
Author
  • Grant Bowman
Complexity
  • intermediate
Created
  • 2004(xsd:integer)
ID
  • 736(xsd:integer)
NEXT
  • 737(xsd:integer)
Rating
  • 5(xsd:integer)
abstract
  • The way to provide this is a function called from within your statusline. Add the following lines to your vimrc and modify as you prefer. I run unix, but this can be slightly altered for other platforms too. If you are on the mac or dos platforms, simply substitute unix for your platform name in the fuction. function ShowFileFormatFlag(var) if ( a:var == 'dos' ) return '[dos]' elseif ( a:var == 'mac' ) return '[mac]' else return '' endif endfunction hi User1 term=bold cterm=bold ctermfg=red ctermbg=darkblue I call it and color the output of this function red with a blue background. Add the following string to your :set statusline= line in your vimrc. %1*%{ShowFileFormatFlag(&fileformat)}%* The %* returns the highlighting to normal, whatever happens to be set at the time. This is a function that is called each time the statusline is drawn. It passes in the value of the variable fileformat, used locally in the function above via the a:var variable.
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