From cfe9eb17070ab745c48770bfcc2d526d4645eb07 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Tue, 11 Jul 2017 14:20:50 -0400 Subject: [PATCH] Add a way to switch between cpp source and header file --- vimrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vimrc b/vimrc index 42a159c..6bc5183 100644 --- a/vimrc +++ b/vimrc @@ -377,6 +377,8 @@ vnoremap p "_dP " Use Marked.app to preview Markdown files... nnoremap pp :silent !open -a Marked.app '%:p' +" Switch between C++ source and header files +map v :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp, "//////////////////////////////////////////////////////////////// " MULTIPURPOSE TAB KEY