About: File no longer available - mark buffer modified   Sponge Permalink

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

To use it, add the following to your vimrc, or create file ~/.vim/plugin/filechanged.vim (Unix) or $HOME/vimfiles/plugin/filechanged.vim (Windows) containing the script below, then restart Vim. au FileChangedShell * call FCSHandler(expand(":p")) function FCSHandler(name) endfunction You can easily customize this code to take whatever action you desire for the various values of v:fcs_reason, by setting v:fcs_choice (for example, you could reload the buffer if the mode has changed). Based on discussion on the vim_use mailing list.

AttributesValues
rdfs:label
  • File no longer available - mark buffer modified
rdfs:comment
  • To use it, add the following to your vimrc, or create file ~/.vim/plugin/filechanged.vim (Unix) or $HOME/vimfiles/plugin/filechanged.vim (Windows) containing the script below, then restart Vim. au FileChangedShell * call FCSHandler(expand(":p")) function FCSHandler(name) endfunction You can easily customize this code to take whatever action you desire for the various values of v:fcs_reason, by setting v:fcs_choice (for example, you could reload the buffer if the mode has changed). Based on discussion on the vim_use mailing list.
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1567(xsd:integer)
Category
  • File Handling
Author
  • Ewfalor
Subpage
  • /200806
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1568(xsd:integer)
NEXT
  • 1569(xsd:integer)
abstract
  • To use it, add the following to your vimrc, or create file ~/.vim/plugin/filechanged.vim (Unix) or $HOME/vimfiles/plugin/filechanged.vim (Windows) containing the script below, then restart Vim. au FileChangedShell * call FCSHandler(expand(":p")) function FCSHandler(name) let msg = 'File "'.a:name.'"' let v:fcs_choice = if v:fcs_reason == "deleted" let msg .= " no longer available - 'modified' set" call setbufvar(expand(a:name), '&modified', '1') echohl WarningMsg elseif v:fcs_reason == "time" let msg .= " timestamp changed" elseif v:fcs_reason == "mode" let msg .= " permissions changed" elseif v:fcs_reason == "changed" let msg .= " contents changed" let v:fcs_choice = "ask" elseif v:fcs_reason == "conflict" let msg .= " CONFLICT --" let msg .= " is modified, but" let msg .= " was changed outside Vim" let v:fcs_choice = "ask" echohl ErrorMsg else " unknown values (future Vim versions?) let msg .= " FileChangedShell reason=" let msg .= v:fcs_reason let v:fcs_choice = "ask" echohl ErrorMsg endif redraw! echomsg msg echohl None endfunction You can easily customize this code to take whatever action you desire for the various values of v:fcs_reason, by setting v:fcs_choice (for example, you could reload the buffer if the mode has changed). Based on discussion on the vim_use mailing list.
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