How to open a file in a specific line in an existing vim window?

I can open the file on a specific line in mvim (on OSX, gvim on linux, etc.) with mvim file_path +file_line

I can open the file in an existing window mvim --remote-tab file_path

but I cannot combine these two. when I do mvim --remote-tab file_path +file_line, I get 2 tabs, one for the file and the other for the new file named + file_line;)

+3
source share
1 answer

Apparently, it --remote-tabcan only take one + cmd, and it should be the first:

mvim --remote-tab +file_line file_path

Cm. :help --remote

+4
source

Source: https://habr.com/ru/post/1766699/


All Articles