if !exists("*SplitHeader") function! SplitHeader(header_ext, source_ext) " check which filetype and then open header/source in vsplit if (expand("%:e") == a:source_ext) execute "vsplit %:r.".a:header_ext elseif (expand("%:e") == a:header_ext) execute "vsplit %:r.".a:source_ext :exe "normal \r" endif endfunction endif " navigation with % using matchit plugin " pea pei per missing because they push two bytes let b:match_words = '\:\,' \ . '\.\:\.\:\.\:\.\,' \ . '\.\:\.\,' \ . '\.\:\.\,' \ . '\.\:\.\,' \ . '\.\:\.\,' \ . '\.\:\.\,' \ . '\.\:\.\,' \ . '\.\:\.\' setlocal commentstring=;%s