let g:ctrlp_cache_dir = $HOME . '/.vim/cache/ctrlp'
" Permanent cache, cleared by a crontab entry.
let g:ctrlp_clear_cache_on_exit = 0
+
+" FSWitch settings.
+ " Default don't work well for my projects.
+ augroup vimrc
+ autocmd BufEnter *.cc let b:fswitchdst = 'h'
+ \ | let b:fswitchlocs = './'
+ autocmd BufEnter *.h let b:fswitchdst = 'cc,c'
+ \ | let b:fswitchlocs = './'
+ augroup END
+
+ " Switch to corresponding header/source file.
+ nnoremap <silent> <Leader>h :FSHere<CR>
endif