Commits

Ches Martin committed 63e18b1

vim: Add localvimrc, safe loading of project-specific config

  • Participants
  • Parent commits 4e08dc9

Comments (0)

Files changed (2)

File .vim/include/bundles.vim

 Bundle 'AndrewRadev/splitjoin.vim'
 Bundle 'claco/jasmine.vim'
 Bundle 'derekwyatt/vim-scala'
+Bundle 'embear/vim-localvimrc'
 Bundle 'ecomba/vim-ruby-refactoring'
 Bundle 'fs111/pydoc.vim'
 Bundle 'zakj/vim-showmarks'
 map <Leader>a :Ack!<space>
 map <Leader>n :AckFromSearch!<CR>
 
+" localvimrc - https://github.com/embear/vim-localvimrc
+let g:localvimrc_sandbox    = 0  " We ask before loading, this is too restrictive
+let g:localvimrc_ask        = 1  " Default, but be paranoid since we don't sandbox
+let g:localvimrc_persistent = 2  " Always store/restore decisions
+
+let g:localvimrc_persistence_file = expand('$HOME') . '/.backup/vim/localvimrc_persistent'
+
 " NERD tree - double-leader
 map <Leader><Leader> :NERDTreeToggle<cr>