switch files : switch between .c and .h files or different path and same filename easily
| script karma
Downloaded by 393
Comments, bugs, improvements
script versions (upload new version)
map <m-s><m-b> :call vl#lib#files#switch_files#SwitchFile()<cr>
somewhere to get the default mapping.
Then use lines like this
call vl#lib#files#switch_files#SwitchFileRegisterLocalRegexSwap('.h$', ['.cpp', '.cc' ])
autocmd BufRead,BufNewFile /pr/*nix,/pr/*nix/*.sh call vl#lib#files#switch_files#SwitchFileRegisterLocalRegexSwap('/pr/mynix/','/pr/svnnix/')
for each buffer to tell the script how to find alternates.
There is also some support to add custom functions. Drop me an email if you want to know more
|Just source the file and follow the instructions.
You'll be asked before any action is taken.
If you don't feel comfortable installing to .vim insntall to another arbitrary directory and add it to your runtimepath
(let runtimepath+= ..)
Click on the package to download.
ip used for rating: 18.104.22.168