About: Bash file encoding alias   Sponge Permalink

An Entity of Type : owl:Thing, within Data Space : dbkwik.org associated with source dataset(s)

Here is a simple alias for the Bash shell to display what Vim thinks is a file's encoding: alias vimenc='vim -c '\''let $enc = &fileencoding | execute "!echo Encoding: $enc" | q'\''' This saves having to open Vim, then open the file and check the file encoding, and exit. The alias requires a file as a parameter. Usage examples: $ vimenc UTF-16.xml Encoding: utf-16le Press ENTER or type command to continue $ vimenc ISO-8859-1.xml Encoding: latin1 Press ENTER or type command to continue

AttributesValues
rdfs:label
  • Bash file encoding alias
rdfs:comment
  • Here is a simple alias for the Bash shell to display what Vim thinks is a file's encoding: alias vimenc='vim -c '\''let $enc = &fileencoding | execute "!echo Encoding: $enc" | q'\''' This saves having to open Vim, then open the file and check the file encoding, and exit. The alias requires a file as a parameter. Usage examples: $ vimenc UTF-16.xml Encoding: utf-16le Press ENTER or type command to continue $ vimenc ISO-8859-1.xml Encoding: latin1 Press ENTER or type command to continue
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1640(xsd:integer)
Category
  • Terminals
  • File Handling
Author
Subpage
  • /200912
Complexity
  • basic
Created
  • 2009(xsd:integer)
ID
  • 1641(xsd:integer)
NEXT
  • 1642(xsd:integer)
abstract
  • Here is a simple alias for the Bash shell to display what Vim thinks is a file's encoding: alias vimenc='vim -c '\''let $enc = &fileencoding | execute "!echo Encoding: $enc" | q'\''' This saves having to open Vim, then open the file and check the file encoding, and exit. The alias requires a file as a parameter. Usage examples: $ vimenc UTF-16.xml Encoding: utf-16le Press ENTER or type command to continue $ vimenc ISO-8859-1.xml Encoding: latin1 Press ENTER or type command to continue
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