About: Using VimBall with make   Sponge Permalink

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

You can use a Makefile and a series of Vim commands to automatically update your project's vimball on changes, for a sort of poor-man Vim automated build. The Makefile should look something like this: PLUGIN = specky SOURCE = syntax/rdoc.vim SOURCE += syntax/specrun.vim SOURCE += doc/specky.txt SOURCE += plugin/specky.vim ${PLUGIN}.vba: ${SOURCE} vim --cmd 'let g:plugin_name="${PLUGIN}"' -s build.vim install: rsync -Rv ${SOURCE} ${HOME}/.vim/ clean: rm ${PLUGIN}.vba Include each file that is part of your plugin as a SOURCE line. (This example is from the specky plugin.)

AttributesValues
rdfs:label
  • Using VimBall with make
rdfs:comment
  • You can use a Makefile and a series of Vim commands to automatically update your project's vimball on changes, for a sort of poor-man Vim automated build. The Makefile should look something like this: PLUGIN = specky SOURCE = syntax/rdoc.vim SOURCE += syntax/specrun.vim SOURCE += doc/specky.txt SOURCE += plugin/specky.vim ${PLUGIN}.vba: ${SOURCE} vim --cmd 'let g:plugin_name="${PLUGIN}"' -s build.vim install: rsync -Rv ${SOURCE} ${HOME}/.vim/ clean: rm ${PLUGIN}.vba Include each file that is part of your plugin as a SOURCE line. (This example is from the specky plugin.)
Version
  • 7(xsd:integer)
dbkwik:vim/property/wikiPageUsesTemplate
Previous
  • 1600(xsd:integer)
Category
  • Plugin
Text
  • VimBall
  • specky
Author
  • Mahlonsmith
Subpage
  • /200808
Complexity
  • basic
Created
  • 2008(xsd:integer)
ID
  • 1502(xsd:integer)
  • 1601(xsd:integer)
  • 2286(xsd:integer)
NEXT
  • 1602(xsd:integer)
abstract
  • You can use a Makefile and a series of Vim commands to automatically update your project's vimball on changes, for a sort of poor-man Vim automated build. The Makefile should look something like this: PLUGIN = specky SOURCE = syntax/rdoc.vim SOURCE += syntax/specrun.vim SOURCE += doc/specky.txt SOURCE += plugin/specky.vim ${PLUGIN}.vba: ${SOURCE} vim --cmd 'let g:plugin_name="${PLUGIN}"' -s build.vim install: rsync -Rv ${SOURCE} ${HOME}/.vim/ clean: rm ${PLUGIN}.vba Include each file that is part of your plugin as a SOURCE line. (This example is from the specky plugin.) The 'vim -s build.vim' command loads Vim directives from a file. Here's the file I use to create the Vimball. :let g:vimball_home = "." :e Makefile :v/^SOURCE/d :%s/^SOURCE\s\++\?=\s\+// :execute '%MkVimball!' . g:plugin_name :q! This says to parse the SOURCE lines out of the Makefile, and feed them to a vimball. The resulting file (in this example) will be called "specky.vba". As you add (or remove) files, you can just update the Makefile -- no need to change anything else. In this fashion, as you update your code, you can just type "make", and have a packaged up Vimball that is ready for distribution.
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