I'm using rails.vim with the command :AS
which open the alternate file (like test
) and split the window.
The problem is, it's always on the top and I would like to open it below the current window. I would like to know if it's possible to merge these two commands properly?
I'm able to do it with :execute 'AS' | wincmd J
but is this the best way to to it?
How can I be sure it goes just below?
And how do I add it to a leader key?
nnoremap <leader>as :execute 'AS' | wincmd J
.