Skip to content

Instantly share code, notes, and snippets.

@alavers
Created December 12, 2016 22:57
Show Gist options
  • Save alavers/82d428cf3c8dc5e4b8dc902947572da3 to your computer and use it in GitHub Desktop.
Save alavers/82d428cf3c8dc5e4b8dc902947572da3 to your computer and use it in GitHub Desktop.
vim project specific settings
" If you want project specific settings without spreading .vimrc, .vimlocal, or .exrc files everywhere, in your main .vimrc you can:
function ProjectSettings()
" smooch-core-js settings
let smooch_core_js = matchstr(getcwd(), 'git/smooch-core-js')
if !empty(smooch_core_js)
let g:ctrlp_custom_ignore = 'lib\|dist\|amd'
let g:NERDTreeIgnore = ['lib', 'dist', 'amd']
endif
endfunction
autocmd VimEnter * call ProjectSettings()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment