diff --git a/vimrc b/vimrc index 49528ce..2e61ae4 100644 --- a/vimrc +++ b/vimrc @@ -232,6 +232,9 @@ endfunction command! -nargs=? Bf call FindSymbolInSources(b:project_sources . ' ' . b:test_sources, ) command! -nargs=? Cf call FindSymbolInSources(b:project_sources, ) command! -nargs=? Tf call FindSymbolInSources(b:test_sources, ) +command! Cedit exec 'rightbelow vertical sfind ' . substitute(expand('%:t:r'), "test_", "", "") . '.c' +command! CCedit exec 'rightbelow vertical sfind ' . substitute(expand('%:t:r'), "test_", "", "") . '.cc' +command! Hedit exec 'rightbelow vertical sfind ' . expand('%:t:r') . '.h' "============================================================================== " Machine-local Settings