Code Monkey home page Code Monkey logo

proj's Introduction

This is a mirror of http://www.vim.org/scripts/script.php?script_id=2719

Proj lets you save settings for your project in a simple file.

Commands:
    Note that the easiest way to use Proj is with the key mappings bound 
    to the commands below. <Leader>pt is the default mapping to open a 
    tab-specific project, for instance.

    :ProjAdd
     Prompts to add a new project in the current directory.

    :ProjFile
     Open the project file in a split.

    :ProjInfo
     Show all of the current project's settings in the status line.

    :ProjMenu
     Open a menu with all of these commands.

    :ProjNotes
     Open the project notes file in a split.

    :ProjOpen
     Prompt to open a project.

    :ProjOpenTab
     Prompt to open a project for the open tab. Projects opened this way will
     only be active in the opened tab, so that each tab can contain a project.

    :ProjRefresh
     Reload the current project.

    :ProjReload
     Reload the project file.

    :ProjVim
     Open the project's vim settings file in a split.

File Syntax:
    DOS .ini

Available Settings:
    browser - A custom command for the filebrowser
    notes - Path to a text file with project notes
    path - Path to the project root directory
    vim - Path to a file with vim commands
    docksend - Upload all files in the project on save if the TransmitFtp
      plugin is available

Sample Project File:
    ; This is a comment
    [project]
    path = /path/to/project
    vim = /path/to/settings_file.vim
    docksend ; boolean option

    [path-with-spaces]
    path = /path/to/my\ project ; Escape spaces with \

Global Options:
    * g:ProjDisableMappings (default: 0) - Set to 1 to turn off all
        mappings defined by this plugin
    * g:ProjFile (default: '~/.vimproj') - Path to the project file.
    * g:ProjFileBrowser (default: 'NERDTree') - The filebrowser command.
        Set to 'off' to not open a filebrowser.
    * g:ProjMapLeader (default: '<Leader>p') - The prefix for default mappings
    * g:ProjNoteFile (default: 'notes.txt') - Path to the project notes file
    * g:ProjSplitMethod (default: 'vsp') - Command to use when opening a file
        with a Proj command such as ProjFile.

    Default maps: These are all prefixed with g:ProjMapLeader by default.
        g:ProjAddMap (default: 'a') - Calls :ProjAdd
        g:ProjFileMap (default: 'f') - Calls :ProjFile
        g:ProjInfoMap (default: 'i') - Calls :ProjInfo
        g:ProjMenuMap (default: 'm') - Calls :ProjMenu
        g:ProjNotesMap (default: 'n') - Calls :ProjNotes
        g:ProjOpenMap (default: 'o') - Calls :ProjOpen
        g:ProjOpenTabMap (default: 't') - Calls :ProjOpenTab
        g:ProjReloadMap (default: 'r') - Calls :ProjReload
        g:ProjVim (default: 'v') - Calls :ProjVim

proj's People

Contributors

oinksoft avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.