Created
December 12, 2016 22:57
-
-
Save alavers/82d428cf3c8dc5e4b8dc902947572da3 to your computer and use it in GitHub Desktop.
vim project specific settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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