About: Display output of shell commands in new window   Sponge Permalink

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

The new :Shell command works just like :! except that it opens a Vim scratch buffer and prints the command output there. The scratch buffer will be wiped out completely when it's closed. An example of usage: :Shell ls -la The idea can be extended by adding shortcut commands for commonly used shell commands. This example adds some common version control tools: Now the version control tools can be used like this from Vim: :Git add % (The "%" expands to the current filename) :Svn diff -c 1234 :Bzr log -l 10 :Hg annotate %

AttributesValues
rdfs:label
  • Display output of shell commands in new window
rdfs:comment
  • The new :Shell command works just like :! except that it opens a Vim scratch buffer and prints the command output there. The scratch buffer will be wiped out completely when it's closed. An example of usage: :Shell ls -la The idea can be extended by adding shortcut commands for commonly used shell commands. This example adds some common version control tools: Now the version control tools can be used like this from Vim: :Git add % (The "%" expands to the current filename) :Svn diff -c 1234 :Bzr log -l 10 :Hg annotate %
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1598(xsd:integer)
Text
  • AsyncCommand plugin
Subpage
  • /200808
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1599(xsd:integer)
  • 3431(xsd:integer)
NEXT
  • 1600(xsd:integer)
abstract
  • The new :Shell command works just like :! except that it opens a Vim scratch buffer and prints the command output there. The scratch buffer will be wiped out completely when it's closed. An example of usage: :Shell ls -la The idea can be extended by adding shortcut commands for commonly used shell commands. This example adds some common version control tools: command! -complete=file -nargs=* Git call s:RunShellCommand('git '.) command! -complete=file -nargs=* Svn call s:RunShellCommand('svn '.) command! -complete=file -nargs=* Bzr call s:RunShellCommand('bzr '.) command! -complete=file -nargs=* Hg call s:RunShellCommand('hg '.) Now the version control tools can be used like this from Vim: :Git add % (The "%" expands to the current filename) :Svn diff -c 1234 :Bzr log -l 10 :Hg annotate %
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