sadly I´m new to Vimscript and failed to write a function which switches from a .coffee file to the corresponding .js file.
I wonder if anyone already has done this?
I know there is the function :CoffeeCompile watch of the vim-coffee-script plugin but the file you see there is not the real you’ve stored locally.
It would be cool to have a function like this (if you store your .coffee and .js files in the same directory):
function! GoToJS()
" get current file path in a string variable
" change the .coffee extention to a .js extention
" open the .js file
endfunction
Something like this would be really cool-
Try the vim plugin
a.vim. It’s configurable. Add those to.vimrc: