Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.
/ vim-independence Public archive

A vim plugin for loading (git) project specific vim settings

Notifications You must be signed in to change notification settings

AD7six/vim-independence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Vim Independence #ARCHIVED#

This vim plugin allows you to load (git) project specific .vimrc files

Installation

I recommend using Vim Pathogen

Therefore:

cd .vim/bundle
git clone git://github.com/AD7six/vim-independence.git

Alternatively - simply put the file independence.vim in your plugin folder directly

Usage

The plugin is automatic; it will look for and load all .vimrc files found from the git project root to the buffer's folder. When not in a git project, no action is taken.

For example, let's consider that you use the Syntastic plugin, and most of your projects are php. The default standard for syntastic to check code against is the Zend standard - a reasonable default. If all of your projects follow the Zend standard, that's fine. If all of your projects follow a different standard - that's also fine, you can simply define g:syntastic_phpcs_conf in your ~/.vimrc file and the syntastic plugin will take that config.

If you need to follow more than one standard using vim independence that becomes easy:

in ~/somepearproject create ~/somepearproject/.vimrc with the following contents:

let g:syntastic_phpcs_conf = '--standard=Pear`

in ~/somesymfony2project create ~/somesymfony2project/.vimrc with the following contents:

let g:syntastic_phpcs_conf = '--standard=Symfony2`

Etc.

Gotchas

As you may deduce from the above example, if you modify a global variable in a project-specific .vimrc file - those settings will persist for all subsequent buffers you open.

Changelog

  • 0.1.0 Intial release

  • 0.2.0 Load all ".vimrc" files from the git project root down to the buffer's folder

About

A vim plugin for loading (git) project specific vim settings

Resources

Stars

Watchers

Forks

Packages

No packages published