1 if exists("*<SID>CAltSwitcher") | finish | endif
10 function! <SID>CAltSwitcher() abort
11 for ext in g:AltExts[expand("%:e")]
12 let name = expand("%<") . "." . ext
14 execute "edit " . name
18 echomsg "no alt found"
21 nnoremap <buffer> <C-^> :call <SID>CAltSwitcher()<CR>