Add a way to switch between cpp source and header file

This commit is contained in:
Michael Campagnaro 2017-07-11 14:20:50 -04:00
parent bce6381ea7
commit cfe9eb1707

2
vimrc
View File

@ -377,6 +377,8 @@ vnoremap p "_dP
" Use Marked.app to preview Markdown files...
nnoremap <leader>pp :silent !open -a Marked.app '%:p'<cr>
" Switch between C++ source and header files
map <leader>v :e %:p:s,.h$,.X123X,:s,.cpp$,.h,:s,.X123X$,.cpp,<CR>
"////////////////////////////////////////////////////////////////
" MULTIPURPOSE TAB KEY