How to make vim (not gvim) open files through the context menu in new tabs like sublime, without opening a new window for each open file? Such an entry for vim.desktop does not work:

Exec=vim -p --remote-tab-silent %F Terminal=true 

    1 answer 1

    "Server name" must be specified. to connect to what (if an instance of the program with the same name has not yet been launched, the current instance will be considered a “server” with the specified name).


    start editing the file файл1 and assign this instance “server name” имя1 :

     $ vim --servername имя1 --remote-tab-silent файл1 

    see the list of running "servers":

     $ vim --serverlist имя1 

    connect to the same "server" also файл2 :

     $ vim --servername имя1 --remote-tab-silent файл2 
    • What you need, thank you very much, it was possible to do this for the shortcut in the following way: Exec = vim --servername vim --remote-tab-silent% f - nammidd