From d53c913b2305742f3d0cc278d094f11d048577b9 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Thu, 30 Jun 2016 12:11:26 -0400 Subject: [PATCH] add Cedit, CCedit, Hedit commands --- vimrc | 3 +++ 1 file changed, 3 insertions(+) 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