sponsor Vim development Vim logo go to HTTPS page Vim Book Ad

dirconf.vim : project specific vim config and notes

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

created by
Anders Thøgersen
 
script type
utility
 
description
This vim plugin is for maintaining project specific configuration and keeping
notes associated with the project.  The configuration and notes are kept
outside of the project source directory.

I created this plugin because I wanted to change settings between different
projects I am working on that use different plugin settings and be able to
work on these projects in the same vim instance.

For example:

One project uses `eslint` with a specific configuration, while another project
uses `eslint` with a different configuration.

One of these projects uses `tern` for JS completion, where another uses
`vim-flow` completion.

With this plugin I am able to work on these projects within the same vim
instance using something like the following context files:

One for running `eslint` and `flow`:

  let g:javascript_plugin_flow = 1

  " Source the file to define flowcomplete#Complete
  if ! exists('*flowcomplete#Complete')
    let g:tern_disable = 1
    let g:flow#flowpath = a:dir . '/node_modules/.bin/flow'
    let g:neomake_javascript_enabled_makers = ['eslint']
    let g:neomake_javascript_eslint_args = ' --config ' . $HOME . '/.eslintrc-react'
    source ~/.vim/bundle/vim-flow/autoload/flowcomplete.vim  
  endif

  set omnifunc=flowcomplete#Complete

Another dirconf context file for running `eslint` and `ternjs` for completion:

  let g:neomake_javascript_enabled_makers = ['eslint']
  let g:neomake_javascript_eslint_exe = a:dir . '/node_modules/.bin/eslint'
  let g:neomake_javascript_eslint_args = ' --config ' . $HOME . '/.eslintrc-backend'
  let g:tern_show_argument_hints = 1
  let g:tern_show_signature_in_pum = 1


Please send comments and bugreports here: https://github.com/aklt/dirconf.vim
 
install details
Unzip in your vim folder or use your favourite plugin manager
 

Rating scripts is only available on the HTTPS page

script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
dirconf.vim.zip 0.3.0 2017-07-13 7.4 Anders Thøgersen Initial upload
ip used for rating: 54.80.10.56

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.
   
SourceForge.net Logo