About: Write a date-stamped backup of the current file   Sponge Permalink

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

Put this into your vimrc and press \ba while in normal mode, and the current file will be backed up. "A mapping to make a backup of the current file. function! WriteBackup() let l:fname = expand('%:p') . '__' . strftime('%Y_%m_%d_%H.%M.%S') silent execute 'write' l:fname echomsg 'Wrote' l:fname endfunction nnoremap ba :call WriteBackup()

AttributesValues
rdfs:label
  • Write a date-stamped backup of the current file
rdfs:comment
  • Put this into your vimrc and press \ba while in normal mode, and the current file will be backed up. "A mapping to make a backup of the current file. function! WriteBackup() let l:fname = expand('%:p') . '__' . strftime('%Y_%m_%d_%H.%M.%S') silent execute 'write' l:fname echomsg 'Wrote' l:fname endfunction nnoremap ba :call WriteBackup()
Version
  • 5(xsd:double)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 852(xsd:integer)
Text
  • WriteBackup
Author
  • Anders Thøgersen
Complexity
  • basic
Created
  • 2005(xsd:integer)
ID
  • 853(xsd:integer)
  • 1828(xsd:integer)
NEXT
  • 857(xsd:integer)
Rating
  • 32(xsd:integer)
abstract
  • Put this into your vimrc and press \ba while in normal mode, and the current file will be backed up. "A mapping to make a backup of the current file. function! WriteBackup() let l:fname = expand('%:p') . '__' . strftime('%Y_%m_%d_%H.%M.%S') silent execute 'write' l:fname echomsg 'Wrote' l:fname endfunction nnoremap ba :call WriteBackup()
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