sponsor Vim development Vim logo Vim Book Ad

vimscript : use vim as an interpreter to write shell commands in vimscript like vimsh

 script karma  Rating 0/0, Downloaded by 705  Comments, bugs, improvements  Vim wiki

created by
peter jakobi
 
script type
utility
 
description
Experiment to enable vim being invoked as a script interpreter, even when the vimscript block in question is used within a  unix pipe.

This is basically my take on the original vimscript#1069 vimsh from 2004,  sufficiently mangled until it finally did mostly work again with unix pipes and using vim 7.2 (excluding the g//p issue, where the prints  get replicated all over the place - drop me a line if you have an idea).

Note that vim still does some unnecessary screen redrawing if it is connected to a  tty, however I
actually  managed  to run a vimscript even from a cronjob, much to  my surprise.

Further information and example vimscript blocks: see --help.

I'll intend to keep this somewhat uptodate, at least until vim can be run non-interactively without the requirements for such a hack.

The current version is available from:
http://jakobi.github.com/script-archive-doc/
http://github.com/jakobi/script-archive/tree/master/vim/
 
install details
Unix: just place the vimscript command in path.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vimscript 1.2 2009-09-01 6.0 peter jakobi Initial upload
ip used for rating: 3.139.72.78

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github