I use ranger as well, when pared with tmux it makes a very powerful tool. with a nVim socket running. When I press enter on a file, it opens in a new tab in nVim and tmux changes focus to the vim window. If I want to lint or run a file, the appropriate key bind runs the command in the 'debug' or 'lint' pane in tmux with the file as an argument.
That was the key that finally made my tmux/vim editor situation into a full blown IDE.
That was the key that finally made my tmux/vim editor situation into a full blown IDE.