Skip to main content

Create a VIM Project file

Project description

Author:

seletz

Date:
2007-06-30
Revision:
2383

Abstract

This is an python utility to deal with VIM project files which are used by the project VIM plug-in.

Usage

This egg provides two python scripts, mkvimproject and pproject. The first is to create a project file from a directory tree, the second is a shortcut which creates a project file of the current directory and then launches VIM with that project file load.

mkvimproject

mkvimproject creates a project file from a given directory. You can optionally provide a filters and predefined filter sets.

The project file generated may be directly used with the project VIM plug-in.

usage: mkvimproject [options]

options:
  -h, --help            show this help message and exit
  -d DIR, --dir=DIR     the directory to scan
  -o OUT, --out=OUT     The output file
  -f FILTER, --filter=FILTER
                        The extensions to allow.
  -s FILTERSET, --filterset=FILTERSET
                        The filterset to use: one of python,c,none,plone,objc

example:

user@host: ~/develop/plone $ mkvimproject -d . -o plone.vpj -s plone
user@host: ~/develop/plone $ ls -la plone.vpj
-rw-r--r-- 1 seletz seletz 3279254 Jun 30 16:02 plone.vpj
user@host: ~/develop/plone $ head plone.vpj
plone="/Users/seletz/develop/plone" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
 ArchGenXML_trunk="ArchGenXML_trunk" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
  build="build" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
   bdist.darwin-8.9.1-i386="bdist.darwin-8.9.1-i386" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
   }
   bdist.macosx-10.3-fat="bdist.macosx-10.3-fat" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
   }
   lib="lib" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
    archgenxml="archgenxml" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {
     argouml="argouml" CD=. filter="*.diff *.patch *.py *.pt *.txt *.zcml *.xml *.cpt *.cpy *.vpy *.metadata *.dtml" {

pproject

pproject calls mkvimproject for the current directory and then launches VIM with that project file loaded. The project file is named like the name of the parent directory, with “.vpj” added. If this file already exists, no new project file is created, VIM is directly launched (please see also the -U and -X options).

usage: pproject [options]

options:
  -h, --help            show this help message and exit
  -U, --update          Update projectfile.
  -X, --nolaunch        Do noit launch vim. Use with -U.
  -f FILTER, --filter=FILTER
                        The extensions to allow.
  -s FILTERSET, --filterset=FILTERSET
                        The filterset to use: one of python,c,none,plone,objc
vim: set ft=rst tw=75 nocin nosi ai sw=4 ts=4 expandtab spell spelllang=en:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mkvimproject-0.4.2.3-py2.4.egg (11.8 kB view details)

Uploaded Source

File details

Details for the file mkvimproject-0.4.2.3-py2.4.egg.

File metadata

File hashes

Hashes for mkvimproject-0.4.2.3-py2.4.egg
Algorithm Hash digest
SHA256 53db011a6fd60f3402c5dca89e7f5abf6d883835e61699482048f7ab909db7ab
MD5 82fbf4f62e193e7aa65098938bf4d429
BLAKE2b-256 12f9850139c1fe2d4addc48773f07e1218a7df83ca43ee2b00d28ae1f3a5dbf6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page